Test delegate_to for whole block
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
a7bd53fb6e
commit
7e83d61707
@ -137,7 +137,8 @@
|
|||||||
src: kube-vip.j2
|
src: kube-vip.j2
|
||||||
dest: /var/lib/rancher/k3s/server/manifests/kube-vip.yml
|
dest: /var/lib/rancher/k3s/server/manifests/kube-vip.yml
|
||||||
|
|
||||||
when: inventory_hostname == ansible_play_hosts[0]
|
# when: inventory_hostname == ansible_play_hosts[0]
|
||||||
|
delegate_to: "{{ ansible_play_hosts[0] }}"
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user