mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-07-02 07:01:30 +00:00
fix: SSH automation add local_python_interpreter
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
gather_facts: no
|
||||
vars:
|
||||
ansible_connection: local
|
||||
ansible_python_interpreter: "{{ local_python_interpreter }}"
|
||||
ansible_become: false
|
||||
|
||||
tasks:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
vars:
|
||||
ansible_connection: local
|
||||
ansible_shell_type: sh
|
||||
ansible_python_interpreter: "{{ local_python_interpreter }}"
|
||||
ansible_become: false
|
||||
|
||||
tasks:
|
||||
|
||||
@@ -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) }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user