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 <gabrioux@redhat.com>
(cherry picked from commit 5adb735c78)
pull/4874/head
Guillaume Abrioux 2020-01-08 14:14:41 +01:00 committed by Dimitri Savineau
parent 0eaa66f394
commit 4cf5c08cd8
1 changed files with 1 additions and 1 deletions

View File

@ -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