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