jumpserver/apps/accounts/automations/remove_account/host/windows/main.yml

9 lines
204 B
YAML

- hosts: windows
gather_facts: no
tasks:
- name: "Remove account"
ansible.windows.win_user:
name: "{{ account.username }}"
state: absent
purge: yes
force: yes