change tmp ansible to relative folder
This commit is contained in:
@@ -55,7 +55,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: ${{ github.event.repository.owner.login }}/ansible-shared
|
||||
path: /tmp/ansible-shared
|
||||
path: ../ansible-shared
|
||||
token: ${{ secrets.ORG_GITEA_TOKEN }}
|
||||
|
||||
- name: Set up Python
|
||||
@@ -78,14 +78,14 @@ jobs:
|
||||
|
||||
- name: Generate inventory from template
|
||||
run: |
|
||||
cd /tmp/ansible-shared
|
||||
cd ../ansible-shared
|
||||
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: |
|
||||
cd /tmp/ansible-shared
|
||||
cd ../ansible-shared
|
||||
|
||||
EXTRA_VARS_FLAG=""
|
||||
if [ -n "${{ inputs.extra_vars }}" ]; then
|
||||
|
Reference in New Issue
Block a user