Update elasticsearch-security.yml
Refactor template task for copying roles files
This commit is contained in:
parent
abb0d4cf68
commit
c4e00fdc5f
1 changed files with 8 additions and 2 deletions
|
|
@ -44,7 +44,13 @@
|
|||
#-----------------------------ROLE MAPPING ----------------------------------------
|
||||
|
||||
#Copy Roles files
|
||||
- name: Copy role_mapping.yml File for Instance
|
||||
- name: Copy role_mapping.yml file for instance
|
||||
become: yes
|
||||
template: src=security/role_mapping.yml.j2 dest={{ es_conf_dir }}/role_mapping.yml owner=root group={{ es_group }} mode=0660 force=yes
|
||||
template:
|
||||
src: security/role_mapping.yml.j2
|
||||
dest: "{{ es_conf_dir }}/role_mapping.yml"
|
||||
owner: root
|
||||
group: "{{ es_group }}"
|
||||
mode: "0660"
|
||||
force: yes
|
||||
when: es_role_mapping is defined
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue