Commit 78266a90 by arbabnazar

delete the user home directory as well if state is absent

parent 5937b3f9
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
user: user:
name: "{{ item.name }}" name: "{{ item.name }}"
shell: /bin/bash shell: /bin/bash
remove: yes
state: "{{ item.state | default('present') }}" state: "{{ item.state | default('present') }}"
with_items: user_info with_items: user_info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment