fix ci
Infrastructure / Check infrastructure definitions (push) Has been skipped Details
Infrastructure / Deploy all infrastructure (push) Has been skipped Details
Infrastructure / Deploy modified infrastructure (push) Successful in 2m33s Details

This commit is contained in:
Gleb Koval 2023-09-02 20:11:44 +01:00
parent bf46e528f8
commit ef43ef29c8
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 6 additions and 2 deletions

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