Michael Grote
7d118f1193
Reviewed-on: #645 Co-authored-by: Michael Grote <michael.grote@posteo.de> Co-committed-by: Michael Grote <michael.grote@posteo.de>
18 lines
346 B
YAML
18 lines
346 B
YAML
---
|
|
- hosts: all
|
|
tasks:
|
|
- name: remove user
|
|
become: true
|
|
ansible.builtin.user:
|
|
name: "{{ item }}"
|
|
state: absent
|
|
remove: true
|
|
loop:
|
|
- drone
|
|
- drone-user
|
|
|
|
- name: Ensure dir is removed
|
|
become: true
|
|
ansible.builtin.file:
|
|
path: /home/drone
|
|
state: absent
|