mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-28 09:39:12 +03:00
Use connection: local when delegate_to: localhost (#6322)
This will avoid SSH connection on the local host
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
stat:
|
||||
path: "{{ image_path_cached }}"
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
delegate_facts: no
|
||||
register: cache_image
|
||||
changed_when: false
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
state: directory
|
||||
recurse: yes
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
delegate_facts: false
|
||||
run_once: true
|
||||
become: false
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
- name: prep_download | On localhost, check if passwordless root is possible
|
||||
command: "true"
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
run_once: true
|
||||
register: test_become
|
||||
changed_when: false
|
||||
@@ -34,6 +35,7 @@
|
||||
- name: prep_download | On localhost, check if user has access to docker without using sudo
|
||||
shell: "{{ image_info_command_on_localhost }}"
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
run_once: true
|
||||
register: test_docker
|
||||
changed_when: false
|
||||
@@ -92,6 +94,7 @@
|
||||
recurse: yes
|
||||
mode: 0755
|
||||
delegate_to: localhost
|
||||
connection: local
|
||||
delegate_facts: no
|
||||
run_once: true
|
||||
become: false
|
||||
|
||||
Reference in New Issue
Block a user