]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
facts: ensure ceph_uid is set when running rhel
authorGuillaume Abrioux <gabrioux@redhat.com>
Thu, 14 Feb 2019 14:36:27 +0000 (15:36 +0100)
committerSébastien Han <seb@redhat.com>
Tue, 19 Feb 2019 15:40:08 +0000 (16:40 +0100)
when hosts is running on RHEL, let's enforce ceph_uid to 167.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-facts/tasks/facts.yml

index 16e5d2c0b558137134d984e97997f8f8637ea0dd..015eece3bc3c76746cccde638f54c16d6b2c8e25 100644 (file)
     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: