From: Sébastien Han Date: Thu, 19 Apr 2018 08:28:56 +0000 (+0200) Subject: switch: fix ceph_uid fact X-Git-Tag: v3.0.35~8 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=76e584f8d8e3ce96f70a9daa40aa5462b39c4e70;p=ceph-ansible.git switch: fix ceph_uid fact Latest is now centos not ubuntu anymore so the condition was wrong. Signed-off-by: Sébastien Han (cherry picked from commit 767abb5de02c0ecdf81a18f6ca63f2e978d3d7a4) --- diff --git a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml index 2509711b6..6e1953a5c 100644 --- a/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml +++ b/infrastructure-playbooks/switch-from-non-containerized-to-containerized-ceph-daemons.yml @@ -89,13 +89,20 @@ 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: