From 6da99568114daf712081e1f4801fd03661a566aa Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:42:30 -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