diff --git a/tasks/main.yml b/tasks/main.yml index 56aff6c..d1754c4 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -19,7 +19,7 @@ name: "{{ item }}" state: present with_items: "{{ samba_selinux_packages }}" - when: ansible_selinux + when: ansible_selinux.status == 'enabled' tags: samba - name: Make sure SELinux boolean settings are correct @@ -28,7 +28,7 @@ state: yes persistent: yes with_items: "{{ samba_selinux_booleans }}" - when: ansible_selinux + when: ansible_selinux.status == 'enabled' tags: samba - name: Create Samba shares root directory