fill inventory template
This commit is contained in:
@@ -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: |
|
||||
|
Reference in New Issue
Block a user