From 76e584f8d8e3ce96f70a9daa40aa5462b39c4e70 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Thu, 19 Apr 2018 10:28:56 +0200 Subject: [PATCH] switch: fix ceph_uid fact MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Latest is now centos not ubuntu anymore so the condition was wrong. Signed-off-by: Sébastien Han (cherry picked from commit 767abb5de02c0ecdf81a18f6ca63f2e978d3d7a4) --- ...ontainerized-to-containerized-ceph-daemons.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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: -- 2.39.5