Compare commits

...

2 Commits

Author SHA1 Message Date
Gleb Koval 9689da7d11
Add ansible-lint to github actions
Infrastructure / Check and run Ansbile playbooks (pull_request) Failing after 1m36s Details
2024-01-30 12:42:41 +00:00
Gleb Koval e1375aeb72
ansible-lint 2024-01-30 12:40:46 +00:00
2 changed files with 6 additions and 4 deletions

View File

@ -31,11 +31,13 @@ jobs:
pip3 install -r requirements.txt
ansible-galaxy collection install community.general community.docker infisical.vault --force
- name: Ansible lint
run: |
ansible-lint infra/**/*playbook.yaml
- name: Check playbooks
run: |
for file in $(find . -wholename "*/infra/*playbook.yaml" -type f); do
ansible-playbook --inventory ./inventory --syntax-check "$file"
done
ansible-playbook --inventory ./inventory --syntax-check infra/**/*playbook.yaml
- name: Get changed playbooks
id: files