fill inventory template

This commit is contained in:
2025-07-25 15:05:14 +02:00
parent 34815254e2
commit c001cf9b46

View File

@@ -76,12 +76,13 @@ jobs:
eval $(ssh-agent -s) eval $(ssh-agent -s)
ssh-add ~/.ssh/ssh_key ssh-add ~/.ssh/ssh_key
- name: Debug inventory - name: Generate inventory from template
run: | run: |
cd ansible-shared cd ansible-shared
echo "STAF_HOST value: '${{ secrets.STAF_HOST }}'" envsubst < inventory.template > inventory.ini
echo "Generated inventory:" env:
cat inventory.ini STAF_HOST: ${{ secrets.STAF_HOST }}
STAF_ANSIBLE_USER: ${{ secrets.STAF_ANSIBLE_USER }}
- name: Deploy stack with Ansible - name: Deploy stack with Ansible
run: | run: |