diff --git a/scripts/ansible b/scripts/ansible index dbc7d2ee4..bfd02e073 100755 --- a/scripts/ansible +++ b/scripts/ansible @@ -91,10 +91,13 @@ $APT_PATH/apt -y --allow-downgrades install ansible-base \ python3-pymysql python3-psycopg2 python3-passlib python3-pip \ python3-setuptools python3-packaging python3-venv virtualenv -echo -e "\n\nIIAB requires these 3 Ansible Collections: (with ansible-base 2.10.3+)\n" -ansible-galaxy collection install community.general # Re-running collection -ansible-galaxy collection install community.mysql # installs appears safe! -ansible-galaxy collection install ansible.posix # 2020-11-27: For 3 below... +# (Re)running collection installs appears safe, with --force-with-deps to force +# upgrade of collection and dependencies it pulls in. Note Ansible may support +# upgrading all collections cleanly in future. See PR #2652 (links) & PR #2653 +echo -e "\n\nIIAB requires these 3 Ansible Collections: (we upgrade them here if possible!)\n" +ansible-galaxy collection install --force-with-deps community.general +ansible-galaxy collection install --force-with-deps community.mysql +ansible-galaxy collection install --force-with-deps ansible.posix # For 3 below # selinux WAS in /opt/iiab/iiab/roles/1-prep/tasks/main.yml # sysctl in /opt/iiab/iiab/roles/2-common/tasks/main.yml # synchronize in /opt/iiab/iiab-admin-console/roles/js-menu/tasks/main.yml