mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-17 17:07:36 -02:30
Use connection: local when delegate_to: localhost (#6322)
This will avoid SSH connection on the local host
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
mode: "0750"
|
||||
state: directory
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
become: no
|
||||
run_once: yes
|
||||
when: kubeconfig_localhost
|
||||
@@ -88,6 +89,7 @@
|
||||
dest: "{{ artifacts_dir }}/admin.conf"
|
||||
mode: 0640
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
become: no
|
||||
run_once: yes
|
||||
when: kubeconfig_localhost
|
||||
@@ -112,4 +114,5 @@
|
||||
become: no
|
||||
run_once: yes
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
when: kubectl_localhost and kubeconfig_localhost
|
||||
|
||||
Reference in New Issue
Block a user