From be73f9b6486e63baeaeade966d130ce06590821a Mon Sep 17 00:00:00 2001 From: ditmarvisser Date: Sat, 26 Jul 2025 13:56:33 +0200 Subject: [PATCH] install ansible deps --- .gitea/workflows/deploy-compose-stack.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-compose-stack.yml b/.gitea/workflows/deploy-compose-stack.yml index 90395ae..5326880 100644 --- a/.gitea/workflows/deploy-compose-stack.yml +++ b/.gitea/workflows/deploy-compose-stack.yml @@ -55,7 +55,7 @@ jobs: uses: actions/checkout@v4 with: repository: ${{ github.event.repository.owner.login }}/ansible-shared - path: ../ansible-shared + path: ansible-shared token: ${{ secrets.ORG_GITEA_TOKEN }} - name: Set up Python @@ -67,6 +67,7 @@ jobs: - name: Install dependencies run: | pip install ansible docker + ansible-galaxy collection install ansible.posix community.docker - name: Setup SSH run: | @@ -78,14 +79,14 @@ jobs: - name: Generate inventory from template run: | - cd ../ansible-shared + cd ansible-shared sed -e "s/\${STAF_HOST}/${{ secrets.STAF_HOST }}/g" \ -e "s/\${STAF_ANSIBLE_USER}/${{ secrets.STAF_ANSIBLE_USER }}/g" \ inventory.template > inventory.ini - name: Deploy stack with Ansible run: | - cd ../ansible-shared + cd ansible-shared EXTRA_VARS_FLAG="" if [ -n "${{ inputs.extra_vars }}" ]; then