File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -367,7 +367,12 @@ jobs:
367367 - name : Run ansible-lint for Ansible playbook
368368 if : steps.check_ansible_playbook.outputs.files_exists == 'true'
369369 run : |
370- find . -maxdepth 1 -name "*.yml" -not -name "requirements.yml" | xargs -n1 ansible-lint --strict --force-color
370+ find . -maxdepth 1 -name "*.yml" -not -name "requirements.yml" -not -name "hosts.yml" | xargs -n1 ansible-lint --strict --force-color
371+
372+ - name : Run ansible-playbook syntax-check for Ansible playbook
373+ if : steps.check_ansible_playbook.outputs.files_exists == 'true'
374+ run : |
375+ find . -maxdepth 1 -name "*.yml" -not -name "requirements.yml" -not -name "hosts.yml" | xargs -n1 ansible-playbook --inventory="hosts.yml" --syntax-check
371376
372377 - name : Check for Molecule files
373378 id : check_molecule
You can’t perform that action at this time.
0 commit comments