From a9df337ac516b707c75affb345aa6b374664bd06 Mon Sep 17 00:00:00 2001 From: Jerry Vonau Date: Mon, 25 Sep 2017 11:17:52 -0500 Subject: [PATCH] correct selinux for non-redhat installs --- roles/1-prep/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/1-prep/tasks/main.yml b/roles/1-prep/tasks/main.yml index 2e682ff7a..e5507797f 100644 --- a/roles/1-prep/tasks/main.yml +++ b/roles/1-prep/tasks/main.yml @@ -69,11 +69,11 @@ - name: Disable selinux on next boot selinux: state=disabled register: selinux_disabled - when: first_run + when: first_run and not is_debuntu - name: Disable selinux for this session (if needed) command: setenforce Permissive - when: selinux_disabled is defined and selinux_disabled.changed + when: not is_debuntu and selinux_disabled is defined and selinux_disabled.changed ## DISCOVER PLATFORMS ###### - name: Discover if this is a rpi -- assume if so it is running raspbian