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