From 4dfb9a9caf7328387c6de917c5386ce6105d36b5 Mon Sep 17 00:00:00 2001 From: Marco Ochse Date: Mon, 3 Jul 2023 16:45:40 +0200 Subject: [PATCH] tweak installer fix issue with selinux on Fedora --- install.sh | 4 ++-- installer/install/tpot.yml | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 68ccec3b..147304d5 100755 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/installer/install/tpot.yml b/installer/install/tpot.yml index b704c07b..e7f0d083 100644 --- a/installer/install/tpot.yml +++ b/installer/install/tpot.yml @@ -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"]