diff --git a/tasks/main.yml b/tasks/main.yml index fc0f323..70c26d5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -25,9 +25,7 @@ name: "{{ item }}" state: yes persistent: yes - with_items: - - samba_enable_home_dirs - - samba_export_all_rw + with_items: "{{ samba_selinux_booleans }}" when: ansible_selinux - name: Create Samba shares root directory diff --git a/vars/os_RedHat.yml b/vars/os_RedHat.yml index 9f247d7..16c4a41 100644 --- a/vars/os_RedHat.yml +++ b/vars/os_RedHat.yml @@ -9,5 +9,9 @@ samba_packages: samba_selinux_packages: - libselinux-python +samba_selinux_booleans: + - samba_enable_home_dirs + - samba_export_all_rw + samba_service: smb winbind_service: nmb