From a105405f2e855674cb79c0f8cc021f745f12b05f Mon Sep 17 00:00:00 2001 From: "Schonecker, Brian" Date: Mon, 14 Jun 2021 08:09:51 -0400 Subject: [PATCH] Add the ability to configure SELinux or not. --- defaults/main.yml | 2 ++ tasks/distribution/Linux.yml | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index 8e91e54..b27da70 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -233,3 +233,5 @@ ssh_custom_options: [] # Custom options for SSH daemon configuration file sshd_custom_options: [] + +ssh_configure_selinux: true diff --git a/tasks/distribution/Linux.yml b/tasks/distribution/Linux.yml index 3d3b001..b0d4333 100644 --- a/tasks/distribution/Linux.yml +++ b/tasks/distribution/Linux.yml @@ -71,4 +71,7 @@ - name: 'Linux : include selinux specific tasks' include_tasks: subtasks/selinux.yml - when: ansible_selinux and ansible_selinux.status == "enabled" + when: + - ansible_selinux + - ansible_selinux.status == "enabled" + - ssh_configure_selinux is true