fixed Elasticsearch installation's issues related to Idempotence test - Test passed successfully

This commit is contained in:
Rshad Zhran 2019-07-16 12:29:07 +02:00
parent eb70809add
commit fc38d565d9
3 changed files with 36 additions and 31 deletions

View File

@ -3,8 +3,6 @@ dependency:
name: galaxy
driver:
name: docker
#lint:
# name: yamllint
lint:
name: yamllint
options:
@ -17,28 +15,28 @@ platforms:
# ulimits:
# - nofile:262144:262144
# privileged: true
# memory_reservation: 1024m
# memory_reservation: 2048m
# - name: xenial
# image: solita/ubuntu-systemd:xenial
# privileged: true
# memory_reservation: 1024m
# memory_reservation: 2048m
# command: /sbin/init
# ulimits:
# - nofile:262144:262144
- name: trusty
image: ubuntu:trusty
memory_reservation: 1024m
memory_reservation: 2048m
ulimits:
- nofile:262144:262144
# - name: centos6
# image: centos:6
# privileged: true
# memory_reservation: 1024m
# memory_reservation: 2048m
# ulimits:
# - nofile:262144:262144
# - name: centos7
# image: milcom/centos7-systemd
# memory_reservation: 1024m
# memory_reservation: 2048m
# privileged: true
# ulimits:
# - nofile:262144:262144

View File

@ -32,13 +32,19 @@
- ansible_distribution == "Ubuntu"
- ansible_distribution_major_version | int == 14
- name: Set the default Java version
become: yes
shell: update-alternatives --config java
#- name: Set the default Java version
# become: yes
# shell: update-alternatives --config java
# when:
# - ansible_distribution == "Ubuntu"
# - ansible_distribution_major_version | int == 14#
- name: Set the default Javac version
become: yes
shell: update-alternatives --config javac
#- name: Set the default Javac version
# become: yes
# shell: update-alternatives --config javac
# when:
# - ansible_distribution == "Ubuntu"
# - ansible_distribution_major_version | int == 14
- name: Update and upgrade apt packages
become: true
@ -55,12 +61,14 @@
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
state: present
- name: Debian/Ubuntu | Install Elastic repo
apt_repository:
repo: 'deb https://artifacts.elastic.co/packages/7.x/apt stable main'
state: present
filename: 'elastic_repo'
update_cache: true
changed_when: false
- name: Debian/Ubuntu | Install Elasticsarch
apt:

View File

@ -253,6 +253,5 @@
- import_tasks: "RMRedHat.yml"
when: ansible_os_family == "RedHat"
- import_tasks: "RMDebian.yml"
when: ansible_os_family == "Debian"