mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-27 07:17:10 +00:00
perf: set ansible_timeout for account connectivity tasks
This commit is contained in:
parent
185d4e9563
commit
7e2100b435
@ -8,6 +8,7 @@
|
|||||||
ansible_user: "{{ account.username }}"
|
ansible_user: "{{ account.username }}"
|
||||||
ansible_password: "{{ account.secret }}"
|
ansible_password: "{{ account.secret }}"
|
||||||
ansible_ssh_private_key_file: "{{ account.private_key_path }}"
|
ansible_ssh_private_key_file: "{{ account.private_key_path }}"
|
||||||
|
ansible_timeout: 30
|
||||||
when: not account.become.ansible_become
|
when: not account.become.ansible_become
|
||||||
|
|
||||||
- name: Verify account connectivity(Switch)
|
- name: Verify account connectivity(Switch)
|
||||||
@ -20,4 +21,5 @@
|
|||||||
ansible_become_method: "{{ account.become.ansible_become_method }}"
|
ansible_become_method: "{{ account.become.ansible_become_method }}"
|
||||||
ansible_become_user: "{{ account.become.ansible_become_user }}"
|
ansible_become_user: "{{ account.become.ansible_become_user }}"
|
||||||
ansible_become_password: "{{ account.become.ansible_become_password }}"
|
ansible_become_password: "{{ account.become.ansible_become_password }}"
|
||||||
|
ansible_timeout: 30
|
||||||
when: account.become.ansible_become
|
when: account.become.ansible_become
|
||||||
|
@ -9,3 +9,4 @@
|
|||||||
vars:
|
vars:
|
||||||
ansible_user: "{{ account.username }}"
|
ansible_user: "{{ account.username }}"
|
||||||
ansible_password: "{{ account.secret }}"
|
ansible_password: "{{ account.secret }}"
|
||||||
|
ansible_timeout: 30
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
- hosts: demo
|
- hosts: demo
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
vars:
|
||||||
|
ansible_timeout: 30
|
||||||
tasks:
|
tasks:
|
||||||
- name: Posix ping
|
- name: Posix ping
|
||||||
ansible.builtin.ping:
|
ansible.builtin.ping:
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
- hosts: windows
|
- hosts: windows
|
||||||
gather_facts: no
|
gather_facts: no
|
||||||
|
vars:
|
||||||
|
ansible_timeout: 30
|
||||||
tasks:
|
tasks:
|
||||||
- name: Refresh connection
|
- name: Refresh connection
|
||||||
ansible.builtin.meta: reset_connection
|
ansible.builtin.meta: reset_connection
|
||||||
|
Loading…
Reference in New Issue
Block a user