Fix delegate_to

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:30 -04:00
parent fb60093750
commit 6da9956811
1 changed files with 1 additions and 2 deletions

View File

@ -89,8 +89,7 @@
- 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"
run_once: yes run_once: yes
delegate_to: "{{ item }}" delegate_to: "{{ ansible_play_hosts[0] }}"
loop: "{{ ansible_play_hosts[0] }}"
when: newhost is defined and newhost when: newhost is defined and newhost
tags: always tags: always