1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Merge pull request #2648 from holta/selinux-ansible-workaround

Emergency Workaround for SELinux / Ansible Collection install fail
This commit is contained in:
A Holt 2020-11-27 08:24:09 -05:00 committed by GitHub
commit a0f141cb65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View file

@ -105,15 +105,15 @@
when: is_ubuntu
ignore_errors: True
- name: Disable SELinux on next boot (OS's other than debuntu)
selinux:
state: disabled
register: selinux_disabled
when: not is_debuntu
#- name: Disable SELinux on next boot (OS's other than debuntu)
# selinux:
# state: disabled
# register: selinux_disabled
# when: not is_debuntu
- name: Disable SELinux for this session (OS's other than debuntu, if needed)
command: setenforce Permissive
when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
#- name: Disable SELinux for this session (OS's other than debuntu, if needed)
# command: setenforce Permissive
# when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
## DISCOVER PLATFORMS ######
# Put conditional actions for hardware platforms here

View file

@ -94,6 +94,7 @@ $APT_PATH/apt -y --allow-downgrades install ansible-base \
echo -e "\n\nIIAB requires these 2 Ansible Collections: (w/ ansible-base 2.10.0 or higher)\n"
ansible-galaxy collection install community.general # Re-running these
ansible-galaxy collection install community.mysql # appears to be safe!?
#ansible-galaxy collection install ansible.posix # 2020-11-27: See roles/1-prep/tasks/main.yml & PR #2647
echo -e "\n\nCreating/verifying directory /etc/ansible & installing /etc/ansible/hosts\n"
mkdir -p /etc/ansible