From 1b05ba36966c33f09b5fb164f069995f11e2f22d Mon Sep 17 00:00:00 2001 From: kota65535 Date: Tue, 20 Dec 2016 14:10:30 +0900 Subject: [PATCH] modifiy conditional expressions of ansible_selinux --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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