diff --git a/oneshot/upgrade-pvc-cluster_deb12.yml b/oneshot/upgrade-pvc-cluster_deb12.yml index 09d60b3..9dae4f9 100644 --- a/oneshot/upgrade-pvc-cluster_deb12.yml +++ b/oneshot/upgrade-pvc-cluster_deb12.yml @@ -533,7 +533,7 @@ connection: local - 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 delegate_to: "{{ ansible_play_hosts[0] }}" diff --git a/roles/pvc/tasks/main.yml b/roles/pvc/tasks/main.yml index 011e694..0d3c3a2 100644 --- a/roles/pvc/tasks/main.yml +++ b/roles/pvc/tasks/main.yml @@ -87,7 +87,7 @@ connection: local - 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 delegate_to: "{{ ansible_play_hosts[0] }}"