]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
switch: fix ceph_uid fact
authorSébastien Han <seb@redhat.com>
Thu, 19 Apr 2018 08:28:56 +0000 (10:28 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 30 Apr 2018 06:15:18 +0000 (08:15 +0200)
Latest is now centos not ubuntu anymore so the condition was wrong.

Signed-off-by: Sébastien Han <seb@redhat.com>
infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml

index b7e73b77d3767499b93f4ad607379cfe72ba8677..b197b40cf6bc15b59cc63d709456c3bd2e1152eb 100644 (file)
         state: stopped
         enabled: no
 
-    - set_fact:
+    - name: set_fact ceph_uid for ubuntu
+      set_fact:
         ceph_uid: 64045
-      when: ceph_docker_image_tag | match("latest") or ceph_docker_image_tag | search("ubuntu")
+      when: ceph_docker_image_tag | search("ubuntu")
 
-    - set_fact:
+    - name: set_fact ceph_uid for red hat
+      set_fact:
         ceph_uid: 167
-      when: ceph_docker_image_tag | search("centos") or ceph_docker_image | search("rhceph") or ceph_docker_image_tag | search("fedora")
+      when: ceph_docker_image_tag | match("latest") or ceph_docker_image_tag | search("centos") or ceph_docker_image_tag | search("fedora")
+
+    - name: set_fact ceph_uid for rhel
+      set_fact:
+         ceph_uid: 167
+      when: ceph_docker_image | search("rhceph")
 
     - name: set proper ownership on ceph directories
       file: