fix: SSH automation add local_python_interpreter

This commit is contained in:
feng
2026-06-18 18:43:51 +08:00
parent 969cfd27cd
commit 1993f3d9d7
4 changed files with 5 additions and 2 deletions

View File

@@ -2,6 +2,7 @@
gather_facts: no
vars:
ansible_connection: local
ansible_python_interpreter: "{{ local_python_interpreter }}"
ansible_become: false
tasks:

View File

@@ -2,6 +2,7 @@
gather_facts: no
vars:
ansible_connection: local
ansible_python_interpreter: "{{ local_python_interpreter }}"
ansible_become: false
tasks:
@@ -67,4 +68,4 @@
recv_timeout: "{{ params.recv_timeout | default(30) }}"
delegate_to: localhost
connection: local
when: check_conn_after_change
when: check_conn_after_change

View File

@@ -3,6 +3,7 @@
vars:
ansible_connection: local
ansible_shell_type: sh
ansible_python_interpreter: "{{ local_python_interpreter }}"
ansible_become: false
tasks:

View File

@@ -3,6 +3,7 @@
vars:
ansible_connection: local
ansible_shell_type: sh
ansible_python_interpreter: "{{ local_python_interpreter }}"
ansible_become: false
ansible_timeout: 30
tasks:
@@ -22,4 +23,3 @@
old_ssh_version: "{{ jms_asset.old_ssh_version | default(False) }}"
gateway_args: "{{ jms_asset.ansible_ssh_common_args | default(None) }}"
recv_timeout: "{{ params.recv_timeout | default(30) }}"