From 1dfadb60115c48325322a1a278a984fed06d4d21 Mon Sep 17 00:00:00 2001 From: Ian Young Date: Sat, 2 Jan 2016 00:14:04 -0800 Subject: [PATCH] SELinux support is optional --- tasks/main.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 886f795..1951f56 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,12 +4,15 @@ - name: Install Samba packages action: "{{ ansible_pkg_mgr }} pkg={{ item }} state=installed" with_items: - - libsemanage-python - samba-common - samba - samba-client tags: samba +- name: Install SELinux package + action: "{{ ansible_pkg_mgr }} pkg=libsemanage-python state=installed" + when: ansible_selinux + - name: Make sure SELinux boolean settings are correct seboolean: name: "{{ item }}" @@ -18,7 +21,7 @@ with_items: - samba_enable_home_dirs - samba_export_all_rw - tags: samba + when: ansible_selinux - name: Create Samba shares root directory file: