Skip to content

Commit

Permalink
Add user delete task
Browse files Browse the repository at this point in the history
  • Loading branch information
e88z4 committed Jan 25, 2022
1 parent f1e07f7 commit 3a058d4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tasks/user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,19 @@
tags:
- truenas_user
- truenas_user_debug

- name: user | delete user
uri:
url: "{{ truenas_api_url + '/user/id/' + item.id|string }}"
force_basic_auth: true
method: "DELETE"
user: "{{ truenas_api_user }}"
password: "{{ truenas_api_password }}"
body_format: "json"
body: "{{ item.config }}"
delegate_to: localhost
with_items: "{{ truenas_user_config.delete_users }}"
tags:
- truenas_user
- truenas_user_debug

0 comments on commit 3a058d4

Please sign in to comment.