From bee07db90023499f70c8698f8fe3ce685ecb8f5d Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 26 Aug 2025 14:53:31 +0800 Subject: [PATCH] perf: Windows change secret check_conn_after_change --- apps/accounts/automations/change_secret/host/windows/main.yml | 4 +++- .../change_secret/host/windows_rdp_verify/main.yml | 4 +++- apps/accounts/automations/push_account/host/windows/main.yml | 4 +++- .../automations/push_account/host/windows_rdp_verify/main.yml | 4 +++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/apps/accounts/automations/change_secret/host/windows/main.yml b/apps/accounts/automations/change_secret/host/windows/main.yml index a97166fef..368b99ece 100644 --- a/apps/accounts/automations/change_secret/host/windows/main.yml +++ b/apps/accounts/automations/change_secret/host/windows/main.yml @@ -28,4 +28,6 @@ vars: ansible_user: "{{ account.username }}" ansible_password: "{{ account.secret }}" - when: account.secret_type == "password" + when: + - account.secret_type == "password" + - check_conn_after_change diff --git a/apps/accounts/automations/change_secret/host/windows_rdp_verify/main.yml b/apps/accounts/automations/change_secret/host/windows_rdp_verify/main.yml index e1ced1359..85f17a990 100644 --- a/apps/accounts/automations/change_secret/host/windows_rdp_verify/main.yml +++ b/apps/accounts/automations/change_secret/host/windows_rdp_verify/main.yml @@ -31,5 +31,7 @@ login_password: "{{ account.secret }}" login_secret_type: "{{ account.secret_type }}" login_private_key_path: "{{ account.private_key_path }}" - when: account.secret_type == "password" + when: + - account.secret_type == "password" + - check_conn_after_change delegate_to: localhost diff --git a/apps/accounts/automations/push_account/host/windows/main.yml b/apps/accounts/automations/push_account/host/windows/main.yml index 17f68b660..8d51620d4 100644 --- a/apps/accounts/automations/push_account/host/windows/main.yml +++ b/apps/accounts/automations/push_account/host/windows/main.yml @@ -28,4 +28,6 @@ vars: ansible_user: "{{ account.username }}" ansible_password: "{{ account.secret }}" - when: account.secret_type == "password" + when: + - account.secret_type == "password" + - check_conn_after_change diff --git a/apps/accounts/automations/push_account/host/windows_rdp_verify/main.yml b/apps/accounts/automations/push_account/host/windows_rdp_verify/main.yml index 29f4fb022..375931841 100644 --- a/apps/accounts/automations/push_account/host/windows_rdp_verify/main.yml +++ b/apps/accounts/automations/push_account/host/windows_rdp_verify/main.yml @@ -31,5 +31,7 @@ login_password: "{{ account.secret }}" login_secret_type: "{{ account.secret_type }}" login_private_key_path: "{{ account.private_key_path }}" - when: account.secret_type == "password" + when: + - account.secret_type == "password" + - check_conn_after_change delegate_to: localhost