From ef43ef29c8df36ed173db76834f5280f243b3b11 Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Sat, 2 Sep 2023 20:11:44 +0100 Subject: [PATCH] fix ci --- .github/workflows/infra.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/infra.yaml b/.github/workflows/infra.yaml index 427b9b9..27f6b13 100644 --- a/.github/workflows/infra.yaml +++ b/.github/workflows/infra.yaml @@ -33,7 +33,9 @@ jobs: - name: Check playbooks 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: name: Deploy modified infrastructure runs-on: ubuntu-latest @@ -86,4 +88,6 @@ jobs: - name: Run playbooks 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