diff --git a/playbooks/on-off/remove_drone-user.yml b/playbooks/on-off/remove_drone-user.yml new file mode 100644 index 00000000..198bbd06 --- /dev/null +++ b/playbooks/on-off/remove_drone-user.yml @@ -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