only run playbooks

This commit is contained in:
cyclane committed 2023-09-02 19:01:05 +01:00
1 parent 7db11c6506
commit 3e69b5bc6a
1 file changed
+3
+3
View File
@@ -61,5 +61,8 @@ jobs:
- name: Run changed playbooks - name: Run changed playbooks
run: | run: |
for file in ${{ steps.files.outputs.all_changed_files }}; do for file in ${{ steps.files.outputs.all_changed_files }}; do
if [[ "$file" == *"-playbook.yaml" ]];
then
ansible-playbook --inventory ./inventory "$file" ansible-playbook --inventory ./inventory "$file"
fi
done done