Protect reserved elastic user + doc clarification on configuring native realm

This commit is contained in:
Dale McDiarmid 2017-01-16 12:32:03 +00:00
parent 0656a19501
commit 75d750a43e
3 changed files with 12 additions and 5 deletions

View file

@ -28,12 +28,11 @@
register: user_list_response
when: manage_native_users
- set_fact: current_users={{user_list_response.json.keys() | list}}
#Current users not inc. the elastic user which is reserved and cannot be deleted
- set_fact: current_users={{user_list_response.json.keys() | list | difference(['elastic'] )}}
when: manage_native_users
#Identify non declared users
- set_fact: users_to_remove={{ current_users | difference ( es_users.native.keys() ) }}
when: manage_native_users