From 2b142ac3fba18b44fbd9d912b0e1f76485a9b0d3 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 30 Aug 2023 00:51:50 -0400 Subject: [PATCH] Fix delegate_to --- roles/pvc/tasks/main.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/roles/pvc/tasks/main.yml b/roles/pvc/tasks/main.yml index 0bdeb99..011e694 100644 --- a/roles/pvc/tasks/main.yml +++ b/roles/pvc/tasks/main.yml @@ -89,8 +89,7 @@ - name: set first node as primary coordinator on first install command: "pvc node primary --wait" run_once: yes - delegate_to: "{{ item }}" - loop: "{{ ansible_play_hosts[0] }}" + delegate_to: "{{ ansible_play_hosts[0] }}" when: newhost is defined and newhost tags: always