homeserver/playbooks/on-off/remove_drone-user.yml
Michael Grote 7d118f1193 on-off: remove drone-user (#645)
Reviewed-on: #645
Co-authored-by: Michael Grote <michael.grote@posteo.de>
Co-committed-by: Michael Grote <michael.grote@posteo.de>
2024-01-25 09:48:55 +01:00

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