set version of es
This commit is contained in:
parent
adaf582b80
commit
24c2836a50
4 changed files with 4 additions and 32 deletions
|
@ -71,7 +71,8 @@ es_enabled: 'false'
|
||||||
es_host: localhost
|
es_host: localhost
|
||||||
es_port: 9200
|
es_port: 9200
|
||||||
es_user: elastic
|
es_user: elastic
|
||||||
es_pass: password
|
es_pass: "{{ vault_mastodon_es_pass }}"
|
||||||
|
es_version: 7.17.7
|
||||||
|
|
||||||
s3_enabled: 'false'
|
s3_enabled: 'false'
|
||||||
s3_bucket: ''
|
s3_bucket: ''
|
||||||
|
|
|
@ -1,7 +1,4 @@
|
||||||
|
---
|
||||||
- name: Bootstrapping
|
|
||||||
import_tasks: docker/init.yml
|
|
||||||
|
|
||||||
- import_tasks: docker/ubuntu.yml
|
- import_tasks: docker/ubuntu.yml
|
||||||
when: ansible_distribution == 'Ubuntu'
|
when: ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
|
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
|
|
||||||
- name: Check if Python is installed
|
|
||||||
raw: command -v python
|
|
||||||
register: python_installed
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Check if yum is installed
|
|
||||||
raw: command -v yum
|
|
||||||
register: yum_installed
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Check if apt is installed
|
|
||||||
raw: command -v apt
|
|
||||||
register: apt_installed
|
|
||||||
ignore_errors: True
|
|
||||||
|
|
||||||
- name: Bootstrap Python on Amazon Linux
|
|
||||||
raw: yum update && yum install -y python27
|
|
||||||
when: python_installed is failed and yum_installed is succeeded
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: Bootstrap Python on Ubuntu Linux
|
|
||||||
raw: apt update && apt install -y python
|
|
||||||
when: python_installed is failed and apt_installed is succeeded
|
|
||||||
become: true
|
|
|
@ -42,7 +42,7 @@ services:
|
||||||
- internal_network
|
- internal_network
|
||||||
{% if es_enabled %}
|
{% if es_enabled %}
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
image: elasticsearch:latest
|
image: elasticsearch:{{ es_version | default('7.17.7') }}
|
||||||
restart: always
|
restart: always
|
||||||
env_file: database.env.production
|
env_file: database.env.production
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in a new issue