Fix bad calls to node primary
This commit is contained in:
parent
c9d1edf63d
commit
1f4cd92d63
|
@ -533,7 +533,7 @@
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- name: set first node as primary coordinator
|
- name: set first node as primary coordinator
|
||||||
command: "pvc node primary --wait"
|
command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}"
|
||||||
run_once: yes
|
run_once: yes
|
||||||
delegate_to: "{{ ansible_play_hosts[0] }}"
|
delegate_to: "{{ ansible_play_hosts[0] }}"
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,7 @@
|
||||||
connection: local
|
connection: local
|
||||||
|
|
||||||
- name: set first node as primary coordinator on first install
|
- name: set first node as primary coordinator on first install
|
||||||
command: "pvc node primary --wait"
|
command: "pvc node primary --wait {{ ansible_play_hosts[0].split('.')[0] }}"
|
||||||
run_once: yes
|
run_once: yes
|
||||||
delegate_to: "{{ ansible_play_hosts[0] }}"
|
delegate_to: "{{ ansible_play_hosts[0] }}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue