docker: add missing condition for selinux tasks

on `client` and `mds` roles, it tries to set selinux even on non rhel
based distributions.`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/2269/head
Guillaume Abrioux 2017-12-12 14:55:02 +01:00
parent 7eaf444328
commit 26afe46e13
2 changed files with 4 additions and 1 deletions

View File

@ -8,6 +8,7 @@
changed_when: false changed_when: false
when: when:
- containerized_deployment - containerized_deployment
- ansible_os_family == 'RedHat'
- sestatus is defined - sestatus is defined
- sestatus.stdout != 'Disabled' - sestatus.stdout != 'Disabled'

View File

@ -37,7 +37,9 @@
- "{{ ceph_conf_key_directory }}" - "{{ ceph_conf_key_directory }}"
- /var/lib/ceph - /var/lib/ceph
changed_when: false changed_when: false
when: sestatus.stdout != 'Disabled' when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'
- name: generate systemd unit file - name: generate systemd unit file
become: true become: true