Set userid and groupid between ElasticSearch removal and installation
This commit is contained in:
parent
91669e4186
commit
c52eed7aa1
3 changed files with 7 additions and 4 deletions
|
|
@ -54,6 +54,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:
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue