From c98fd0b9e0b33aa8c7622e89b6fbe1a31b3978eb Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Thu, 14 Feb 2019 15:36:27 +0100 Subject: [PATCH] facts: ensure ceph_uid is set when running rhel when hosts is running on RHEL, let's enforce ceph_uid to 167. Signed-off-by: Guillaume Abrioux --- roles/ceph-facts/tasks/facts.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index 16e5d2c0b..015eece3b 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -212,7 +212,8 @@ 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: