Refactor inventory paths in Ansible actions

This commit is contained in:
2024-10-06 01:53:30 +02:00
parent cae03aa746
commit b753b76e10
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -27,5 +27,5 @@ runs:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
TARGET_HOST: ${{ inputs.target-host }}
run: |
system_id=$(ansible -i ansible/inventory/hosts -b -u $ANSIBLE_USER -m shell -a "read_system_id" $TARGET_HOST | tail -1)
system_id=$(ansible -i inventory/hosts -b -u $ANSIBLE_USER -m shell -a "read_system_id" $TARGET_HOST | tail -1)
echo "system-id=$system_id" >> $GITHUB_OUTPUT