modifiy conditional expressions of ansible_selinux

This commit is contained in:
kota65535 2016-12-20 14:10:30 +09:00
parent eacc77058f
commit 1b05ba3696

View File

@ -19,7 +19,7 @@
name: "{{ item }}" name: "{{ item }}"
state: present state: present
with_items: "{{ samba_selinux_packages }}" with_items: "{{ samba_selinux_packages }}"
when: ansible_selinux when: ansible_selinux.status == 'enabled'
tags: samba tags: samba
- name: Make sure SELinux boolean settings are correct - name: Make sure SELinux boolean settings are correct
@ -28,7 +28,7 @@
state: yes state: yes
persistent: yes persistent: yes
with_items: "{{ samba_selinux_booleans }}" with_items: "{{ samba_selinux_booleans }}"
when: ansible_selinux when: ansible_selinux.status == 'enabled'
tags: samba tags: samba
- name: Create Samba shares root directory - name: Create Samba shares root directory