Skip to content

Commit c81fe9b

Browse files
chore: make it so ansible only reinstalls modules if it detects an outdated version (#1184)
* fix: make it so ansible only reinstalls modules if it detects an outdated version * chore(deps): update instance to v2.8.3
1 parent 7634e31 commit c81fe9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/powervs-vpc-landing-zone/submodules/ansible/ansible_node_packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ main::install_packages() {
9090
for collection in $GLOBAL_GALAXY_COLLECTIONS; do
9191
local count=0
9292
local max_count=3
93-
while ! ansible-galaxy collection install "${collection}" -f; do
93+
while ! ansible-galaxy collection install "${collection}" --upgrade; do
9494
count=$((count + 1))
9595
sleep 3
9696
# shellcheck disable=SC2317
@@ -101,7 +101,7 @@ main::install_packages() {
101101
done
102102
done
103103

104-
ansible-galaxy collection install -r '/root/.ansible/collections/ansible_collections/ibm/power_linux_sap/requirements.yml' -f
104+
ansible-galaxy collection install -r '/root/.ansible/collections/ansible_collections/ibm/power_linux_sap/requirements.yml' --upgrade
105105
main::log_info "All packages installed successfully"
106106
fi
107107

0 commit comments

Comments
 (0)