mirror of https://github.com/ceph/ceph-ansible.git
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
parent
0010979412
commit
913ad53709
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -72,4 +72,5 @@
|
|||
- /var/lib/ceph
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- sestatus.stdout != 'Disabled'
|
||||
|
|
|
@ -36,4 +36,5 @@
|
|||
- /var/lib/ceph
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- sestatus.stdout != 'Disabled'
|
||||
|
|
|
@ -36,4 +36,5 @@
|
|||
- /var/lib/ceph
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- sestatus.stdout != 'Disabled'
|
||||
|
|
|
@ -42,4 +42,5 @@
|
|||
- /var/lib/ceph
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- sestatus.stdout != 'Disabled'
|
||||
|
|
|
@ -35,4 +35,5 @@
|
|||
- /var/lib/ceph
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- sestatus.stdout != 'Disabled'
|
||||
|
|
|
@ -35,4 +35,5 @@
|
|||
- /var/lib/ceph
|
||||
changed_when: false
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- sestatus.stdout != 'Disabled'
|
||||
|
|
Loading…
Reference in New Issue