feat: Added dawarich role #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | ||
| name: Ansible validation | ||
| on: | ||
| pull_request: true | ||
| push: | ||
| branches: | ||
| - main | ||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.x' | ||
| - name: Install Ansible tooling | ||
| run: python -m pip install --requirement requirements.txt molecule molecule-docker | ||
| - name: Install Ansible collections | ||
| run: ansible-galaxy collection install --requirements-file requirements.yml | ||
| - name: Lint YAML | ||
| run: yamllint . | ||
| - name: Lint Ansible | ||
| run: ansible-lint | ||
| - name: Syntax check Dawarich playbook | ||
| run: ansible-playbook --syntax-check playbooks/dawarich.yml | ||
| - name: Test Dawarich role | ||
| env: | ||
| ANSIBLE_ALLOW_BROKEN_CONDITIONALS: 'true' | ||
| run: molecule test --scenario-name dawarich | ||