Skip to content
Snippets Groups Projects
Commit fb236cdb authored by Jelle van der Waa's avatar Jelle van der Waa :construction:
Browse files

users: remove user from servers

parent b9768e6e
Branches wip/aur
No related tags found
No related merge requests found
......@@ -5,3 +5,14 @@
state: absent
path: "{{ playbook_dir }}/../pubkeys/{{ username }}.pub"
delegate_to: localhost
- name: remove home directory
file:
state: absent
path: "/home/{{ username }}"
- name: remove user from server
user:
name: "{{ username }}"
state: absent
remove: yes
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment