Merge pull request #588 from broferek/master

Set userid and groupid in a different place in the role
This commit is contained in:
Julien Mailleret 2019-07-10 09:07:19 +02:00 committed by GitHub
commit ad52b2d403
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 4 deletions

View file

@ -54,6 +54,9 @@
- { repo: "{{ es_apt_url }}", state: "present" }
- { 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
become: yes

View file

@ -35,6 +35,10 @@
name: '{{ es_other_package_name }}'
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
become: yes
yum:

View file

@ -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
include: elasticsearch-Debian.yml
when: ansible_os_family == 'Debian'