Merge branch 'master' into option_add_repo
This commit is contained in:
commit
71c405f86d
5 changed files with 9 additions and 4 deletions
|
|
@ -55,6 +55,9 @@
|
||||||
- { repo: "{{ es_apt_url }}", state: "present" }
|
- { repo: "{{ es_apt_url }}", state: "present" }
|
||||||
- { repo: "{{ es_other_apt_url }}", state: "absent" }
|
- { repo: "{{ es_other_apt_url }}", state: "absent" }
|
||||||
|
|
||||||
|
- name: Include optional user and group creation.
|
||||||
|
when: (es_user_id is defined) and (es_group_id is defined)
|
||||||
|
include: elasticsearch-optional-user.yml
|
||||||
|
|
||||||
- name: Debian - Ensure elasticsearch is installed
|
- name: Debian - Ensure elasticsearch is installed
|
||||||
become: yes
|
become: yes
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,10 @@
|
||||||
name: '{{ es_other_package_name }}'
|
name: '{{ es_other_package_name }}'
|
||||||
state: 'absent'
|
state: 'absent'
|
||||||
|
|
||||||
|
- name: Include optional user and group creation.
|
||||||
|
when: (es_user_id is defined) and (es_group_id is defined)
|
||||||
|
include: elasticsearch-optional-user.yml
|
||||||
|
|
||||||
- name: RedHat - Install Elasticsearch
|
- name: RedHat - Install Elasticsearch
|
||||||
become: yes
|
become: yes
|
||||||
yum:
|
yum:
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
status_code: 200
|
status_code: 200
|
||||||
user: "{{es_api_basic_auth_username | default(omit)}}"
|
user: "{{es_api_basic_auth_username | default(omit)}}"
|
||||||
password: "{{es_api_basic_auth_password | default(omit)}}"
|
password: "{{es_api_basic_auth_password | default(omit)}}"
|
||||||
|
force_basic_auth: yes
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{{ lookup('file', item) }}"
|
body: "{{ lookup('file', item) }}"
|
||||||
when: load_templates.changed and es_start_service
|
when: load_templates.changed and es_start_service
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,5 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
- name: Include optional user and group creation.
|
|
||||||
when: (es_user_id is defined) and (es_group_id is defined)
|
|
||||||
include: elasticsearch-optional-user.yml
|
|
||||||
|
|
||||||
- name: Include specific Elasticsearch
|
- name: Include specific Elasticsearch
|
||||||
include: elasticsearch-Debian.yml
|
include: elasticsearch-Debian.yml
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
body_format: json
|
body_format: json
|
||||||
body: "{{ es_xpack_license }}"
|
body: "{{ es_xpack_license }}"
|
||||||
return_content: yes
|
return_content: yes
|
||||||
|
force_basic_auth: yes
|
||||||
register: license_activated
|
register: license_activated
|
||||||
no_log: True
|
no_log: True
|
||||||
failed_when: >
|
failed_when: >
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue