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
when: ansible_os_family == 'RedHat'
@ -30,7 +30,7 @@
when: install.changed
tags: install
- import_tasks: SecurityActions.yml
- import_tasks: security_actions.yml
- name: Configure OpenDistro Elasticsearch JVM memmory.
template:

View File

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