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
@@ -48,7 +48,7 @@ runs:
env:
HOST_GROUP: ${{ inputs.host-group }}
run: |
ansible-inventory -i ansible/inventory/hosts --list --yaml $HOST_GROUP | grep -oP '(\w+\.){2}\w+' | sort -u > /tmp/ansible_hosts
ansible-inventory -i inventory/hosts --list --yaml $HOST_GROUP | grep -oP '(\w+\.){2}\w+' | sort -u > /tmp/ansible_hosts
echo "hosts=$(cat /tmp/ansible_hosts)" >> $GITHUB_OUTPUT
- name: Read SSH host keys from remote hosts