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: