Skip to content

Commit

Permalink
Update rhel9-linux-hypervisor.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tosin2013 authored Nov 25, 2024
1 parent 8296ddc commit e07de49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rhel9-linux-hypervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ generate_inventory() {
local control_host="$(hostname -I | awk '{print $1}')"
local control_user="$USER"
echo "[control]" > "/opt/qubinode_navigator/inventories/$INVENTORY/hosts"
echo "control ansible_host=$control_host ansible_user=$control_user" >> "/opt/qubinode_navigator/inventories/$INVENTORY/hosts"
#echo "control ansible_host=$control_host ansible_user=$control_user" >> "/opt/qubinode_navigator/inventories/$INVENTORY/hosts"
echo "control ansible_connection=local ansible_user=$control_user" >> "/opt/qubinode_navigator/inventories/$INVENTORY/hosts"
if [ "${DEVELOPMENT_MODEL}" == "true" ]; then
if ! ansible-navigator inventory --list -m stdout --vault-password-file ~/.vault_password; then
log_message "Failed to list Ansible inventory"
Expand Down

0 comments on commit e07de49

Please sign in to comment.