mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-19 21:52:27 +00:00
tweak installer
fix issue with selinux on Fedora
This commit is contained in:
parent
ae9a2dd2ee
commit
4dfb9a9caf
2 changed files with 10 additions and 4 deletions
|
@ -95,9 +95,9 @@ esac
|
|||
echo
|
||||
|
||||
# Define tag for Ansible
|
||||
if [ "${myCURRENT_DISTRIBUTION}" == "Debian GNU/Linux" ];
|
||||
if [ "${myCURRENT_DISTRIBUTION}" == "Debian GNU/Linux" ] || [ "${myCURRENT_DISTRIBUTION}" == "Fedora Linux" ];
|
||||
then
|
||||
myANSIBLE_TAG="Debian"
|
||||
myANSIBLE_TAG=$(echo ${myCURRENT_DISTRIBUTION} | cut -d " " -f 1)
|
||||
else
|
||||
myANSIBLE_TAG=${myCURRENT_DISTRIBUTION}
|
||||
fi
|
||||
|
|
|
@ -349,7 +349,7 @@
|
|||
tags:
|
||||
- "Fedora"
|
||||
|
||||
- name: Update SELinux config (Fedora)
|
||||
- name: Set SELinux config to permissive (Fedora)
|
||||
lineinfile:
|
||||
path: /etc/selinux/config
|
||||
regexp: '^SELINUX='
|
||||
|
@ -358,6 +358,12 @@
|
|||
tags:
|
||||
- "Fedora"
|
||||
|
||||
- name: Set SELinux to permissive (Fedora)
|
||||
command: "setenforce Permissive"
|
||||
when: ansible_distribution in ["Fedora"]
|
||||
tags:
|
||||
- "Fedora"
|
||||
|
||||
- name: Stop Resolved (Fedora, Ubuntu)
|
||||
service:
|
||||
name: systemd-resolved
|
||||
|
@ -436,7 +442,7 @@
|
|||
|
||||
- name: Restart SSH (All)
|
||||
service:
|
||||
name: "{{ 'sshd' if ansible_distribution in ['Debian', 'openSUSE Tumbleweed'] else 'ssh' }}"
|
||||
name: "{{ 'sshd' if ansible_distribution in ['Debian', 'Fedora', 'openSUSE Tumbleweed'] else 'ssh' }}"
|
||||
state: restarted
|
||||
enabled: true
|
||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||
|
|
Loading…
Reference in a new issue