1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 03:32:12 +00:00

Merge pull request #2653 from holta/ansible-collections-attempt-upgrade

scripts/ansible: try --force-with-deps with Ansible Collections
This commit is contained in:
A Holt 2020-11-28 10:35:07 -05:00 committed by GitHub
commit 8c8d6d9497
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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