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 uses: actions/checkout@v4
with: with:
repository: ${{ github.event.repository.owner.login }}/ansible-shared repository: ${{ github.event.repository.owner.login }}/ansible-shared
path: ../ansible-shared path: ansible-shared
token: ${{ secrets.ORG_GITEA_TOKEN }} token: ${{ secrets.ORG_GITEA_TOKEN }}
- name: Set up Python - name: Set up Python
@@ -67,6 +67,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
pip install ansible docker pip install ansible docker
ansible-galaxy collection install ansible.posix community.docker
- name: Setup SSH - name: Setup SSH
run: | run: |
@@ -78,14 +79,14 @@ jobs:
- name: Generate inventory from template - name: Generate inventory from template
run: | run: |
cd ../ansible-shared cd ansible-shared
sed -e "s/\${STAF_HOST}/${{ secrets.STAF_HOST }}/g" \ sed -e "s/\${STAF_HOST}/${{ secrets.STAF_HOST }}/g" \
-e "s/\${STAF_ANSIBLE_USER}/${{ secrets.STAF_ANSIBLE_USER }}/g" \ -e "s/\${STAF_ANSIBLE_USER}/${{ secrets.STAF_ANSIBLE_USER }}/g" \
inventory.template > inventory.ini inventory.template > inventory.ini
- name: Deploy stack with Ansible - name: Deploy stack with Ansible
run: | run: |
cd ../ansible-shared cd ansible-shared
EXTRA_VARS_FLAG="" EXTRA_VARS_FLAG=""
if [ -n "${{ inputs.extra_vars }}" ]; then if [ -n "${{ inputs.extra_vars }}" ]; then