mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-06 18:17:47 +03:00
Use connection: local when delegate_to: localhost (#6322)
This will avoid SSH connection on the local host
This commit is contained in:
@@ -7,4 +7,5 @@
|
||||
gather_subset: '!all,network'
|
||||
filter: "ansible_default_ipv4"
|
||||
delegate_to: "{{ delegate_host_to_gather_facts }}"
|
||||
connection: "{{ (delegate_host_to_gather_facts == 'localhost') | ternary('local', omit) }}"
|
||||
delegate_facts: yes
|
||||
|
||||
Reference in New Issue
Block a user