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>
This commit is contained in:
Michael Grote 2024-01-25 09:48:55 +01:00 committed by mg
parent 8a8ef50dea
commit 7d118f1193
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
---
- 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