change envsubst to sed

This commit is contained in:
2025-07-25 15:26:28 +02:00
parent c001cf9b46
commit 246b5e003a

View File

@@ -78,11 +78,9 @@ jobs:
- name: Generate inventory from template
run: |
cd ansible-shared
envsubst < inventory.template > inventory.ini
env:
STAF_HOST: ${{ secrets.STAF_HOST }}
STAF_ANSIBLE_USER: ${{ secrets.STAF_ANSIBLE_USER }}
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: |