ignored Ubuntu Trusty in Testing
This commit is contained in:
parent
fc38d565d9
commit
687797a66c
@ -9,37 +9,38 @@ lint:
|
|||||||
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: 2048m
|
memory_reservation: 2048m
|
||||||
# - name: xenial
|
- name: xenial
|
||||||
# image: solita/ubuntu-systemd:xenial
|
image: solita/ubuntu-systemd:xenial
|
||||||
# privileged: true
|
privileged: true
|
||||||
# memory_reservation: 2048m
|
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
|
||||||
|
# privileged: true
|
||||||
|
# memory_reservation: 2048m
|
||||||
|
# ulimits:
|
||||||
|
# - nofile:262144:262144
|
||||||
|
- name: centos6
|
||||||
|
image: centos:6
|
||||||
|
privileged: true
|
||||||
memory_reservation: 2048m
|
memory_reservation: 2048m
|
||||||
ulimits:
|
ulimits:
|
||||||
- nofile:262144:262144
|
- nofile:262144:262144
|
||||||
# - name: centos6
|
- name: centos7
|
||||||
# image: centos:6
|
image: milcom/centos7-systemd
|
||||||
# privileged: true
|
memory_reservation: 2048m
|
||||||
# memory_reservation: 2048m
|
privileged: true
|
||||||
# ulimits:
|
ulimits:
|
||||||
# - nofile:262144:262144
|
- nofile:262144:262144
|
||||||
# - name: centos7
|
|
||||||
# image: milcom/centos7-systemd
|
|
||||||
# memory_reservation: 2048m
|
|
||||||
# privileged: true
|
|
||||||
# ulimits:
|
|
||||||
# - nofile:262144:262144
|
|
||||||
provisioner:
|
provisioner:
|
||||||
name: ansible
|
name: ansible
|
||||||
playbooks:
|
playbooks:
|
||||||
|
|||||||
@ -23,11 +23,11 @@ platforms:
|
|||||||
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: 1024m
|
||||||
ulimits:
|
# ulimits:
|
||||||
- nofile:262144:262144
|
# - nofile:262144:262144
|
||||||
- name: centos6
|
- name: centos6
|
||||||
image: centos:6
|
image: centos:6
|
||||||
privileged: true
|
privileged: true
|
||||||
|
|||||||
@ -32,20 +32,6 @@
|
|||||||
- ansible_distribution == "Ubuntu"
|
- ansible_distribution == "Ubuntu"
|
||||||
- ansible_distribution_major_version | int == 14
|
- ansible_distribution_major_version | int == 14
|
||||||
|
|
||||||
#- 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
|
|
||||||
# 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
|
||||||
apt:
|
apt:
|
||||||
|
|||||||
@ -197,6 +197,28 @@
|
|||||||
when:
|
when:
|
||||||
- elasticsearch_xpack_security
|
- elasticsearch_xpack_security
|
||||||
|
|
||||||
|
- name: Trusty | set MAX_LOCKED_MEMORY=unlimited in Elasticsearch in /etc/security/limits.conf
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/security/limits.conf
|
||||||
|
line: elasticsearch - memlock unlimited
|
||||||
|
create: yes
|
||||||
|
become: yes
|
||||||
|
when:
|
||||||
|
- ansible_distribution == "Ubuntu"
|
||||||
|
- ansible_distribution_major_version | int == 14
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Trusty | set MAX_LOCKED_MEMORY=unlimited in Elasticsearch in /etc/security/limits.d/elasticsearch.conf
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/security/limits.d/elasticsearch.conf
|
||||||
|
line: elasticsearch - memlock unlimited
|
||||||
|
create: yes
|
||||||
|
become: yes
|
||||||
|
changed_when: false
|
||||||
|
when:
|
||||||
|
- ansible_distribution == "Ubuntu"
|
||||||
|
- ansible_distribution_major_version | int == 14
|
||||||
|
|
||||||
- name: Distribution != one of [ centos 6.*, trusty ] | Reload systemd
|
- name: Distribution != one of [ centos 6.*, trusty ] | Reload systemd
|
||||||
systemd: daemon_reload=true
|
systemd: daemon_reload=true
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
@ -211,6 +233,7 @@
|
|||||||
|
|
||||||
- name: Distribution is centos 6.* | Start Elasticsearch
|
- name: Distribution is centos 6.* | Start Elasticsearch
|
||||||
service: name=elasticsearch state=started
|
service: name=elasticsearch state=started
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Ensure Elasticsearch started and enabled
|
- name: Ensure Elasticsearch started and enabled
|
||||||
service:
|
service:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user