This commit is contained in:
cyclane committed 2023-09-02 20:11:44 +01:00
1 parent bf46e528f8
commit ef43ef29c8
1 file changed
+6 -2
+6 -2
View File
@@ -33,7 +33,9 @@ jobs:
- name: Check playbooks - name: Check playbooks
run: | run: |
find . -wholename "*/infra/*-playbook.yaml" -type f -exec ansible-playbook --inventory ./inventory --check {} \; for file in $(find . -wholename "*/infra/*-playbook.yaml" -type f); do
ansible-playbook --inventory ./inventory --check "$file"
done
deploy: deploy:
name: Deploy modified infrastructure name: Deploy modified infrastructure
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -86,4 +88,6 @@ jobs:
- name: Run playbooks - name: Run playbooks
run: | run: |
find . -wholename "*/infra/*-playbook.yaml" -type f -exec ansible-playbook --inventory ./inventory {} \; for file in $(find . -wholename "*/infra/*-playbook.yaml" -type f); do
ansible-playbook --inventory ./inventory "$file"
done