From 1f4cd92d638bdb0f041a54264b4c288fe4f7a553 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:30 -0400 Subject: [PATCH] Fix bad calls to node primary --- oneshot/upgrade-pvc-cluster_deb12.yml | 2 +- roles/pvc/tasks/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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] }}"