From: Guillaume Abrioux Date: Wed, 25 Apr 2018 12:20:35 +0000 (+0200) Subject: switch: fix ceph_uid fact for osd X-Git-Tag: v3.0.35~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1a221ecb6ea8ad446963bea92489e034c308bbc9;p=ceph-ansible.git switch: fix ceph_uid fact for osd In addition to b324c17 this commit fix the ceph uid for osd role in the switch from non containerized to containerized playbook. Signed-off-by: Guillaume Abrioux (cherry picked from commit adeecc51f8adf7834b936b7cf6a1be7e6bb82d27) --- 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 6e1953a5c..74155b5b5 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 @@ -241,9 +241,15 @@ ceph_uid: 64045 when: ceph_docker_image_tag | match("latest") or 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: