set version of es

This commit is contained in:
Antonio J. Delgado 2022-11-19 23:00:24 +02:00
parent adaf582b80
commit 24c2836a50
4 changed files with 4 additions and 32 deletions

View file

@ -71,7 +71,8 @@ es_enabled: 'false'
es_host: localhost
es_port: 9200
es_user: elastic
es_pass: password
es_pass: "{{ vault_mastodon_es_pass }}"
es_version: 7.17.7
s3_enabled: 'false'
s3_bucket: ''

View file

@ -1,7 +1,4 @@
- name: Bootstrapping
import_tasks: docker/init.yml
---
- import_tasks: docker/ubuntu.yml
when: ansible_distribution == 'Ubuntu'

View file

@ -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

View file

@ -42,7 +42,7 @@ services:
- internal_network
{% if es_enabled %}
elasticsearch:
image: elasticsearch:latest
image: elasticsearch:{{ es_version | default('7.17.7') }}
restart: always
env_file: database.env.production
environment: