when hosts is running on RHEL, let's enforce ceph_uid to 167.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph_uid: 167
when:
- containerized_deployment
- - ceph_docker_image_tag | string is search("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
+ - (ceph_docker_image_tag | string is search("latest") or ceph_docker_image_tag | string is search("centos") or ceph_docker_image_tag | string is search("fedora")
+ or (ansible_distribution == 'RedHat'))
- name: set_fact ceph_uid for red hat
set_fact: