mirror of https://github.com/ceph/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 <gabrioux@redhat.com>
(cherry picked from commit 5adb735c78
)
pull/4874/head
parent
0eaa66f394
commit
4cf5c08cd8
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue