Skip to content

Commit e3f2187

Browse files
committed
feat: install ansible dependencies
1 parent 80edc38 commit e3f2187

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,12 @@ jobs:
375375
run: |
376376
find . -maxdepth 1 -name "*.yml" -not -name "requirements.yml" -not -name "hosts.yml" | xargs -n1 ansible-lint --strict --force-color
377377
378+
- name: Install role and collection dependencies
379+
if: steps.check_ansible_playbook.outputs.files_exists == 'true'
380+
run: |
381+
ansible-galaxy role install --role-file=requirements.yml
382+
ansible-galaxy collection install --requirements-file=requirements.yml
383+
378384
- name: Run ansible-playbook syntax-check for Ansible playbook
379385
if: steps.check_ansible_playbook.outputs.files_exists == 'true'
380386
env:

0 commit comments

Comments
 (0)