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:
commit
a0f141cb65
2 changed files with 9 additions and 8 deletions
|
@ -105,15 +105,15 @@
|
||||||
when: is_ubuntu
|
when: is_ubuntu
|
||||||
ignore_errors: True
|
ignore_errors: True
|
||||||
|
|
||||||
- name: Disable SELinux on next boot (OS's other than debuntu)
|
#- name: Disable SELinux on next boot (OS's other than debuntu)
|
||||||
selinux:
|
# selinux:
|
||||||
state: disabled
|
# state: disabled
|
||||||
register: selinux_disabled
|
# register: selinux_disabled
|
||||||
when: not is_debuntu
|
# when: not is_debuntu
|
||||||
|
|
||||||
- name: Disable SELinux for this session (OS's other than debuntu, if needed)
|
#- name: Disable SELinux for this session (OS's other than debuntu, if needed)
|
||||||
command: setenforce Permissive
|
# command: setenforce Permissive
|
||||||
when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
|
# when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed
|
||||||
|
|
||||||
## DISCOVER PLATFORMS ######
|
## DISCOVER PLATFORMS ######
|
||||||
# Put conditional actions for hardware platforms here
|
# Put conditional actions for hardware platforms here
|
||||||
|
|
|
@ -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"
|
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.general # Re-running these
|
||||||
ansible-galaxy collection install community.mysql # appears to be safe!?
|
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"
|
echo -e "\n\nCreating/verifying directory /etc/ansible & installing /etc/ansible/hosts\n"
|
||||||
mkdir -p /etc/ansible
|
mkdir -p /etc/ansible
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue