Red Hat is now using tags[3,latest] for image rhceph/rhceph-3-rhel7.
Because of this, the ceph_uid conditional passes for Debian
when 'ceph_docker_image_tag: latest' on RH deployments.
I've added an additional task to check for rhceph image specifically,
and also updated the RH family task for ceph/daemon [centos|fedora]tags.
Signed-off-by: Randy J. Martinez <ramartin@redhat.com>
ceph_uid: 167
when:
- containerized_deployment
- - ceph_docker_image_tag | search("latest") or ceph_docker_image_tag | search("centos") or ceph_docker_image | search("rhceph")
+ - ceph_docker_image_tag | search("latest") or ceph_docker_image_tag | search("centos") or ceph_docker_image_tag | search("fedora")
+
+- name: set_fact ceph_uid for Red Hat
+ set_fact:
+ ceph_uid: 167
+ when:
+ - containerized_deployment
+ - ceph_docker_image | search("rhceph")
- name: check if selinux is enabled
command: getenforce
check_mode: no
when:
- ansible_os_family == 'RedHat'
-
-