Browse Source

perf: Automation remove account task fail (#13406)

Co-authored-by: feng <1304903146@qq.com>
pull/13410/head
fit2bot 5 months ago committed by GitHub
parent
commit
60738da053
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      apps/accounts/automations/remove_account/host/posix/main.yml

2
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:

Loading…
Cancel
Save