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