install ansible deps

This commit is contained in:
2025-07-26 13:56:33 +02:00
parent 5be19d1bf1
commit be73f9b648

View File

@@ -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