mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-20 06:02:24 +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
|
echo
|
||||||
|
|
||||||
# Define tag for Ansible
|
# Define tag for Ansible
|
||||||
if [ "${myCURRENT_DISTRIBUTION}" == "Debian GNU/Linux" ];
|
if [ "${myCURRENT_DISTRIBUTION}" == "Debian GNU/Linux" ] || [ "${myCURRENT_DISTRIBUTION}" == "Fedora Linux" ];
|
||||||
then
|
then
|
||||||
myANSIBLE_TAG="Debian"
|
myANSIBLE_TAG=$(echo ${myCURRENT_DISTRIBUTION} | cut -d " " -f 1)
|
||||||
else
|
else
|
||||||
myANSIBLE_TAG=${myCURRENT_DISTRIBUTION}
|
myANSIBLE_TAG=${myCURRENT_DISTRIBUTION}
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -349,7 +349,7 @@
|
||||||
tags:
|
tags:
|
||||||
- "Fedora"
|
- "Fedora"
|
||||||
|
|
||||||
- name: Update SELinux config (Fedora)
|
- name: Set SELinux config to permissive (Fedora)
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/selinux/config
|
path: /etc/selinux/config
|
||||||
regexp: '^SELINUX='
|
regexp: '^SELINUX='
|
||||||
|
@ -358,6 +358,12 @@
|
||||||
tags:
|
tags:
|
||||||
- "Fedora"
|
- "Fedora"
|
||||||
|
|
||||||
|
- name: Set SELinux to permissive (Fedora)
|
||||||
|
command: "setenforce Permissive"
|
||||||
|
when: ansible_distribution in ["Fedora"]
|
||||||
|
tags:
|
||||||
|
- "Fedora"
|
||||||
|
|
||||||
- name: Stop Resolved (Fedora, Ubuntu)
|
- name: Stop Resolved (Fedora, Ubuntu)
|
||||||
service:
|
service:
|
||||||
name: systemd-resolved
|
name: systemd-resolved
|
||||||
|
@ -436,7 +442,7 @@
|
||||||
|
|
||||||
- name: Restart SSH (All)
|
- name: Restart SSH (All)
|
||||||
service:
|
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
|
state: restarted
|
||||||
enabled: true
|
enabled: true
|
||||||
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
when: ansible_distribution in ["Debian", "Fedora", "openSUSE Tumbleweed", "Ubuntu"]
|
||||||
|
|
Loading…
Reference in a new issue