Skip to content

Commit

Permalink
updating code
Browse files Browse the repository at this point in the history
  • Loading branch information
tosin2013 authored Jul 22, 2024
1 parent def4b8a commit d7e5669
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rhel9-linux-hypervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,11 @@ configure_ansible_vault() {
fi
if [ -f /tmp/config.yml ]; then
log_message "Copying config.yml to vault.yml"
if [ -f /opt/qubinode_navigator/inventories/${INVENTORY}/group_vars/control/vault.yml ];
then
rm -rf /opt/qubinode_navigator/inventories/${INVENTORY}/group_vars/control/vault.yml
fi

cp -avi /tmp/config.yml "/opt/qubinode_navigator/inventories/${INVENTORY}/group_vars/control/vault.yml"
ls -l "/opt/qubinode_navigator/inventories/${INVENTORY}/group_vars/control/vault.yml" || exit $?
if ! /usr/local/bin/ansiblesafe -f "/opt/qubinode_navigator/inventories/${INVENTORY}/group_vars/control/vault.yml" -o 1; then
Expand Down

0 comments on commit d7e5669

Please sign in to comment.