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:
parent
8a8ef50dea
commit
7d118f1193
1 changed files with 18 additions and 0 deletions
18
playbooks/on-off/remove_drone-user.yml
Normal file
18
playbooks/on-off/remove_drone-user.yml
Normal 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
|
Loading…
Reference in a new issue