docker: add condition to run selinux tasks only on rhel os family

This fixes the error :

```
The conditional check 'sestatus.stdout != 'Disabled'' failed.
```

that occurs when running on non rhel based system since the
`sestatus` fact is registered only on rhel based distribution.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/1962/head
Guillaume Abrioux 2017-09-29 02:19:09 +02:00
parent 0010979412
commit 913ad53709
8 changed files with 12 additions and 2 deletions

View File

@ -34,4 +34,6 @@
- "{{ ceph_conf_key_directory }}"
- /var/lib/ceph
changed_when: false
when: sestatus.stdout != 'Disabled'
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -49,4 +49,6 @@
- "{{ ceph_conf_key_directory }}"
- /var/lib/ceph
changed_when: false
when: sestatus.stdout != 'Disabled'
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -72,4 +72,5 @@
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -36,4 +36,5 @@
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -36,4 +36,5 @@
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -42,4 +42,5 @@
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -35,4 +35,5 @@
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'

View File

@ -35,4 +35,5 @@
- /var/lib/ceph
changed_when: false
when:
- ansible_os_family == 'RedHat'
- sestatus.stdout != 'Disabled'