From 60738da053c78441302af813d9ea0f6ffa15d0b7 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 12 Jun 2024 15:30:52 +0800 Subject: [PATCH] perf: Automation remove account task fail (#13406) Co-authored-by: feng <1304903146@qq.com> --- apps/accounts/automations/remove_account/host/posix/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/accounts/automations/remove_account/host/posix/main.yml b/apps/accounts/automations/remove_account/host/posix/main.yml index cddac5541..e05e7693c 100644 --- a/apps/accounts/automations/remove_account/host/posix/main.yml +++ b/apps/accounts/automations/remove_account/host/posix/main.yml @@ -12,11 +12,13 @@ path: "{{ user_home_dir.stdout }}" register: home_dir when: user_home_dir.stdout != "" + ignore_errors: yes - name: "Rename user home directory if it exists" ansible.builtin.command: cmd: "mv {{ user_home_dir.stdout }} {{ user_home_dir.stdout }}.bak" when: home_dir.stat | default(false) and user_home_dir.stdout != "" + ignore_errors: yes - name: "Remove account" ansible.builtin.user: