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 - name: Generate inventory from template
run: | run: |
cd ansible-shared sed -e "s/\${STAF_HOST}/${{ secrets.STAF_HOST }}/g" \
envsubst < inventory.template > inventory.ini -e "s/\${STAF_ANSIBLE_USER}/${{ secrets.STAF_ANSIBLE_USER }}/g" \
env: inventory.template > 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: |