mirror of https://github.com/ceph/ceph-ansible.git
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
parent
7eaf444328
commit
26afe46e13
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue