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)
ssh-add ~/.ssh/ssh_key
- name: Debug inventory
- name: Generate inventory from template
run: |
cd ansible-shared
echo "STAF_HOST value: '${{ secrets.STAF_HOST }}'"
echo "Generated inventory:"
cat inventory.ini
envsubst < inventory.template > inventory.ini
env:
STAF_HOST: ${{ secrets.STAF_HOST }}
STAF_ANSIBLE_USER: ${{ secrets.STAF_ANSIBLE_USER }}
- name: Deploy stack with Ansible
run: |