fixed Elasticsearch installation's issues related to Idempotence test - Test passed successfully
This commit is contained in:
parent
eb70809add
commit
fc38d565d9
@ -3,45 +3,43 @@ dependency:
|
|||||||
name: galaxy
|
name: galaxy
|
||||||
driver:
|
driver:
|
||||||
name: docker
|
name: docker
|
||||||
#lint:
|
|
||||||
# name: yamllint
|
|
||||||
lint:
|
lint:
|
||||||
name: yamllint
|
name: yamllint
|
||||||
options:
|
options:
|
||||||
config-data:
|
config-data:
|
||||||
ignore: .virtualenv
|
ignore: .virtualenv
|
||||||
platforms:
|
platforms:
|
||||||
# - name: bionic
|
# - name: bionic
|
||||||
# image: solita/ubuntu-systemd:bionic
|
# image: solita/ubuntu-systemd:bionic
|
||||||
# command: /sbin/init
|
# command: /sbin/init
|
||||||
# ulimits:
|
# ulimits:
|
||||||
# - nofile:262144:262144
|
# - nofile:262144:262144
|
||||||
# privileged: true
|
# privileged: true
|
||||||
# memory_reservation: 1024m
|
# memory_reservation: 2048m
|
||||||
# - name: xenial
|
# - name: xenial
|
||||||
# image: solita/ubuntu-systemd:xenial
|
# image: solita/ubuntu-systemd:xenial
|
||||||
# privileged: true
|
# privileged: true
|
||||||
# memory_reservation: 1024m
|
# memory_reservation: 2048m
|
||||||
# command: /sbin/init
|
# command: /sbin/init
|
||||||
# ulimits:
|
# ulimits:
|
||||||
# - nofile:262144:262144
|
# - nofile:262144:262144
|
||||||
- name: trusty
|
- name: trusty
|
||||||
image: ubuntu:trusty
|
image: ubuntu:trusty
|
||||||
memory_reservation: 1024m
|
memory_reservation: 2048m
|
||||||
ulimits:
|
ulimits:
|
||||||
- nofile:262144:262144
|
- nofile:262144:262144
|
||||||
# - name: centos6
|
# - name: centos6
|
||||||
# image: centos:6
|
# image: centos:6
|
||||||
# privileged: true
|
# privileged: true
|
||||||
# memory_reservation: 1024m
|
# memory_reservation: 2048m
|
||||||
|
# ulimits:
|
||||||
|
# - nofile:262144:262144
|
||||||
|
# - name: centos7
|
||||||
|
# image: milcom/centos7-systemd
|
||||||
|
# memory_reservation: 2048m
|
||||||
|
# privileged: true
|
||||||
# ulimits:
|
# ulimits:
|
||||||
# - nofile:262144:262144
|
# - nofile:262144:262144
|
||||||
# - name: centos7
|
|
||||||
# image: milcom/centos7-systemd
|
|
||||||
# memory_reservation: 1024m
|
|
||||||
# privileged: true
|
|
||||||
# ulimits:
|
|
||||||
# - nofile:262144:262144
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
|||||||
@ -32,13 +32,19 @@
|
|||||||
- ansible_distribution == "Ubuntu"
|
- ansible_distribution == "Ubuntu"
|
||||||
- ansible_distribution_major_version | int == 14
|
- ansible_distribution_major_version | int == 14
|
||||||
|
|
||||||
- name: Set the default Java version
|
#- name: Set the default Java version
|
||||||
become: yes
|
# become: yes
|
||||||
shell: update-alternatives --config java
|
# shell: update-alternatives --config java
|
||||||
|
# when:
|
||||||
|
# - ansible_distribution == "Ubuntu"
|
||||||
|
# - ansible_distribution_major_version | int == 14#
|
||||||
|
|
||||||
- name: Set the default Javac version
|
#- name: Set the default Javac version
|
||||||
become: yes
|
# become: yes
|
||||||
shell: update-alternatives --config javac
|
# shell: update-alternatives --config javac
|
||||||
|
# when:
|
||||||
|
# - ansible_distribution == "Ubuntu"
|
||||||
|
# - ansible_distribution_major_version | int == 14
|
||||||
|
|
||||||
- name: Update and upgrade apt packages
|
- name: Update and upgrade apt packages
|
||||||
become: true
|
become: true
|
||||||
@ -55,12 +61,14 @@
|
|||||||
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
url: "https://artifacts.elastic.co/GPG-KEY-elasticsearch"
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Install Elastic repo
|
- name: Debian/Ubuntu | Install Elastic repo
|
||||||
apt_repository:
|
apt_repository:
|
||||||
repo: 'deb https://artifacts.elastic.co/packages/7.x/apt stable main'
|
repo: 'deb https://artifacts.elastic.co/packages/7.x/apt stable main'
|
||||||
state: present
|
state: present
|
||||||
filename: 'elastic_repo'
|
filename: 'elastic_repo'
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
- name: Debian/Ubuntu | Install Elasticsarch
|
- name: Debian/Ubuntu | Install Elasticsarch
|
||||||
apt:
|
apt:
|
||||||
|
|||||||
@ -253,6 +253,5 @@
|
|||||||
- import_tasks: "RMRedHat.yml"
|
- import_tasks: "RMRedHat.yml"
|
||||||
when: ansible_os_family == "RedHat"
|
when: ansible_os_family == "RedHat"
|
||||||
|
|
||||||
|
|
||||||
- import_tasks: "RMDebian.yml"
|
- import_tasks: "RMDebian.yml"
|
||||||
when: ansible_os_family == "Debian"
|
when: ansible_os_family == "Debian"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user