From 8da3a1adf5b4ebf5064a343a72bd73cb23a40ad6 Mon Sep 17 00:00:00 2001 From: lettimepassby <86416409@qq.com> Date: Fri, 22 May 2026 13:49:22 +0800 Subject: [PATCH] fix: failure when changing network device passwords through a gateway --- apps/accounts/automations/change_secret/custom/ssh/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/accounts/automations/change_secret/custom/ssh/main.yml b/apps/accounts/automations/change_secret/custom/ssh/main.yml index 9d8d03e99..06ba9d025 100644 --- a/apps/accounts/automations/change_secret/custom/ssh/main.yml +++ b/apps/accounts/automations/change_secret/custom/ssh/main.yml @@ -41,6 +41,8 @@ password: "{{ account.secret }}" commands: "{{ params.commands }}" answers: "{{ params.answers }}" + 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) }}" delay_time: "{{ params.delay_time | default(2) }}" prompt: "{{ params.prompt | default('.*') }}" @@ -64,4 +66,4 @@ gateway_args: "{{ jms_asset.ansible_ssh_common_args | default(None) }}" recv_timeout: "{{ params.recv_timeout | default(30) }}" delegate_to: localhost - when: check_conn_after_change \ No newline at end of file + when: check_conn_after_change