mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
310 B
YAML
17 lines
310 B
YAML
4 years ago
|
- name: Cleanup user account
|
||
|
hosts: testhost
|
||
|
|
||
|
tasks:
|
||
|
- name: remove test user
|
||
|
user:
|
||
|
name: fetcher
|
||
|
state: absent
|
||
|
remove: yes
|
||
|
force: yes
|
||
|
|
||
|
- name: delete temporary directory
|
||
|
file:
|
||
|
path: "{{ remote_tmp_dir }}"
|
||
|
state: absent
|
||
|
no_log: yes
|