Fixed variables and renamed files

This commit is contained in:
Manuel J. Bernal 2020-05-11 15:18:11 +02:00
parent 9742c4984c
commit eb9925a901
3 changed files with 6 additions and 6 deletions

View File

@ -1,6 +1,6 @@
--- ---
- import_tasks: LocalActions.yml - import_tasks: local_actions.yml
- import_tasks: RedHat.yml - import_tasks: RedHat.yml
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
@ -30,7 +30,7 @@
when: install.changed when: install.changed
tags: install tags: install
- import_tasks: SecurityActions.yml - import_tasks: security_actions.yml
- name: Configure OpenDistro Elasticsearch JVM memmory. - name: Configure OpenDistro Elasticsearch JVM memmory.
template: template:

View File

@ -26,14 +26,14 @@
- admin.key - admin.key
- admin.pem - admin.pem
- name: Copy the OpenDistrosecurity configuration file to cluster - name: Copy the OpenDistro security configuration file to cluster
blockinfile: blockinfile:
block: "{{ lookup('file', '{{ local_certs_path }}/config/{{ inventory_hostname }}_elasticsearch_config_snippet.yml') }}" block: "{{ lookup('file', '{{ local_certs_path }}/config/{{ inventory_hostname }}_elasticsearch_config_snippet.yml') }}"
dest: "{{ opendistro_conf_path }}/elasticsearch.yml" dest: "{{ opendistro_conf_path }}/elasticsearch.yml"
insertafter: EOF insertafter: EOF
marker: "## {mark} Opendistro Security Node & Admin certificates configuration ##" marker: "## {mark} Opendistro Security Node & Admin certificates configuration ##"
- name: Prepare the OpenDistrosecurity configuration file - name: Prepare the OpenDistro security configuration file
replace: replace:
path: "{{ opendistro_conf_path }}/elasticsearch.yml" path: "{{ opendistro_conf_path }}/elasticsearch.yml"
regexp: 'searchguard' regexp: 'searchguard'
@ -45,7 +45,7 @@
name: elasticsearch name: elasticsearch
state: restarted state: restarted
- name: Copy the OpenDistrosecurity internal users template - name: Copy the OpenDistro security internal users template
template: template:
src: "templates/internal_users.yml.j2" src: "templates/internal_users.yml.j2"
dest: "{{ opendistro_sec_plugin_conf_path }}/internal_users.yml" dest: "{{ opendistro_sec_plugin_conf_path }}/internal_users.yml"
@ -64,7 +64,7 @@
{{ opendistro_sec_plugin_conf_path }}/internal_users.yml {{ opendistro_sec_plugin_conf_path }}/internal_users.yml
run_once: true run_once: true
- name: Initialize the OpenDistrosecurity index in elasticsearch - name: Initialize the OpenDistro security index in elasticsearch
command: > command: >
{{ opendistro_sec_plugin_tools_path }}/securityadmin.sh {{ opendistro_sec_plugin_tools_path }}/securityadmin.sh
-cacert {{ opendistro_conf_path }}/root-ca.pem -cacert {{ opendistro_conf_path }}/root-ca.pem