Linting and improving variables

This commit is contained in:
Manuel J. Bernal 2020-05-08 20:44:30 +02:00
parent a2fe75775e
commit cf14f400ba
5 changed files with 14 additions and 10 deletions

View File

@ -39,8 +39,9 @@ opendistro_jvm_xms: null
opendistro_http_port: 9200
certs_gen_tool_version: 1.7
# Url of Search Guard certificates generator tool
certs_gen_tool_url: https://releases.floragunn.com/search-guard-tlstool/1.7/search-guard-tlstool-1.7.zip
certs_gen_tool_url: "https://releases.floragunn.com/search-guard-tlstool/{{ certs_gen_tool_version }}/search-guard-tlstool-{{ certs_gen_tool_version }}.zip"
elasticrepo:
apt: 'https://artifacts.elastic.co/packages/7.x/apt'

View File

@ -1,4 +1,5 @@
---
- name: restart elasticsearch
service: name=elasticsearch
service:
name: elasticsearch
state: restarted

View File

@ -4,7 +4,7 @@
- name: Local action | Create local temporary directory for certificates generation
local_action:
module: file
path: {{ local_certs_path }}
path: "{{ local_certs_path }}"
state: directory
run_once: true
@ -12,8 +12,8 @@
local_action:
module: get_url
url: "{{ certs_gen_tool_url }}"
dest: "{{ local_certs_path }}/search-guard-tlstool-1.7.zip"
run_once: "{{ local_certs_path }}/search-guard-tlstool.zip"
dest: "{{ local_certs_path }}/search-guard-tlstool-{{ certs_gen_tool_version }}.zip"
run_once: true
- name: Local action | Extract the certificates generation tool
local_action:

View File

@ -22,7 +22,8 @@
changed_when: false
- name: RedHat/CentOS/Fedora | Install OpenJDK 11
yum: name=java-11-openjdk-devel
yum:
name: java-11-openjdk-devel
state: present
- name: RedHat/CentOS/Fedora | Install OpenDistro dependencies

View File

@ -6,7 +6,8 @@
when: ansible_os_family == 'RedHat'
- name: Install OpenDistro
package: name=opendistroforelasticsearch-{{ opendistro_version }}
package:
name: opendistroforelasticsearch-{{ opendistro_version }}
state: present
register: install
tags: install