From: Guillaume Abrioux Date: Wed, 8 Jan 2020 13:14:41 +0000 (+0100) Subject: facts: use correct python interpreter X-Git-Tag: v4.0.7~18 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4cf5c08cd8b9497f0482a021bca42b79dfaf5fcc;p=ceph-ansible.git facts: use correct python interpreter that task is delegated on the first mon so we should always use the `discovered_interpreter_python` from that node. Signed-off-by: Guillaume Abrioux (cherry picked from commit 5adb735c78767545993192c67cf12b9e03f42138) --- diff --git a/roles/ceph-facts/tasks/facts.yml b/roles/ceph-facts/tasks/facts.yml index e112aafd8..65d77eace 100644 --- a/roles/ceph-facts/tasks/facts.yml +++ b/roles/ceph-facts/tasks/facts.yml @@ -108,7 +108,7 @@ - not rolling_update | bool block: - name: generate cluster fsid - command: "{{ discovered_interpreter_python }} -c 'import uuid; print(str(uuid.uuid4()))'" + command: "{{ hostvars[groups[mon_group_name][0]]['discovered_interpreter_python'] }} -c 'import uuid; print(str(uuid.uuid4()))'" register: cluster_uuid delegate_to: "{{ groups[mon_group_name][0] }}" run_once: true