diff --git a/roles/ceph-mds/tasks/docker/copy_configs.yml b/roles/ceph-mds/tasks/docker/copy_configs.yml index 022e114d1..cecc7fc4d 100644 --- a/roles/ceph-mds/tasks/docker/copy_configs.yml +++ b/roles/ceph-mds/tasks/docker/copy_configs.yml @@ -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' diff --git a/roles/ceph-mgr/tasks/docker/copy_configs.yml b/roles/ceph-mgr/tasks/docker/copy_configs.yml index a6f3c6ffd..d90ce7671 100644 --- a/roles/ceph-mgr/tasks/docker/copy_configs.yml +++ b/roles/ceph-mgr/tasks/docker/copy_configs.yml @@ -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' diff --git a/roles/ceph-mon/tasks/docker/copy_configs.yml b/roles/ceph-mon/tasks/docker/copy_configs.yml index 1fa9e7424..2e04a94cf 100644 --- a/roles/ceph-mon/tasks/docker/copy_configs.yml +++ b/roles/ceph-mon/tasks/docker/copy_configs.yml @@ -72,4 +72,5 @@ - /var/lib/ceph changed_when: false when: + - ansible_os_family == 'RedHat' - sestatus.stdout != 'Disabled' diff --git a/roles/ceph-nfs/tasks/docker/copy_configs.yml b/roles/ceph-nfs/tasks/docker/copy_configs.yml index 9985d052b..2b3e52312 100644 --- a/roles/ceph-nfs/tasks/docker/copy_configs.yml +++ b/roles/ceph-nfs/tasks/docker/copy_configs.yml @@ -36,4 +36,5 @@ - /var/lib/ceph changed_when: false when: + - ansible_os_family == 'RedHat' - sestatus.stdout != 'Disabled' diff --git a/roles/ceph-osd/tasks/copy_configs.yml b/roles/ceph-osd/tasks/copy_configs.yml index 9a9e1dc70..93572b75c 100644 --- a/roles/ceph-osd/tasks/copy_configs.yml +++ b/roles/ceph-osd/tasks/copy_configs.yml @@ -36,4 +36,5 @@ - /var/lib/ceph changed_when: false when: + - ansible_os_family == 'RedHat' - sestatus.stdout != 'Disabled' diff --git a/roles/ceph-rbd-mirror/tasks/docker/copy_configs.yml b/roles/ceph-rbd-mirror/tasks/docker/copy_configs.yml index 87704ed26..fabe5d6d6 100644 --- a/roles/ceph-rbd-mirror/tasks/docker/copy_configs.yml +++ b/roles/ceph-rbd-mirror/tasks/docker/copy_configs.yml @@ -42,4 +42,5 @@ - /var/lib/ceph changed_when: false when: + - ansible_os_family == 'RedHat' - sestatus.stdout != 'Disabled' diff --git a/roles/ceph-restapi/tasks/docker/copy_configs.yml b/roles/ceph-restapi/tasks/docker/copy_configs.yml index dbc979dac..cc8ea7f8d 100644 --- a/roles/ceph-restapi/tasks/docker/copy_configs.yml +++ b/roles/ceph-restapi/tasks/docker/copy_configs.yml @@ -35,4 +35,5 @@ - /var/lib/ceph changed_when: false when: + - ansible_os_family == 'RedHat' - sestatus.stdout != 'Disabled' diff --git a/roles/ceph-rgw/tasks/docker/copy_configs.yml b/roles/ceph-rgw/tasks/docker/copy_configs.yml index 6daa39e24..46469f286 100644 --- a/roles/ceph-rgw/tasks/docker/copy_configs.yml +++ b/roles/ceph-rgw/tasks/docker/copy_configs.yml @@ -35,4 +35,5 @@ - /var/lib/ceph changed_when: false when: + - ansible_os_family == 'RedHat' - sestatus.stdout != 'Disabled'