adding rhel9 #156
This file contains 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 Lint # feel free to pick your own name | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Add cloud and galaxy tokens | |
run: echo -e "${{ secrets.galaxy_token }}" >> ansible.cfg | |
- name: Fix issues | |
run: echo -e " " > vault.yml; sed -i -e "s/.*community.esxi.*//g" collections/requirements.yml | |
- name: Install ansible-lint | |
run: pip3 install ansible-core ansible-lint yamllint | |
- name: Install Collections | |
run: ansible-galaxy collection install -f -r collections/requirements.yml | |
- name: Lint Ansible Playbook | |
run: ansible-lint --profile=production -c .ansible-lint.yml | |
... |