DEV-1111 updates
- gitea 1.19 - pgadmin4 7.1 - traefik 2.10.1 - elastic stack 7.16.3qa
parent
da102cc254
commit
b5034abf5b
@ -0,0 +1,48 @@
|
|||||||
|
---
|
||||||
|
### tags:
|
||||||
|
### update_settings
|
||||||
|
|
||||||
|
- name: "Wait for <https://{{ inventory_hostname }}:9200>"
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "https://{{ inventory_hostname }}:9200"
|
||||||
|
user: "{{ elastic_admin_username }}"
|
||||||
|
password: "{{ elastic_admin_password }}"
|
||||||
|
ca_path: "{{ service_base_path }}/{{ elastic_id }}/certs/ca/ca.crt"
|
||||||
|
method: GET
|
||||||
|
status_code: 200
|
||||||
|
return_content: yes
|
||||||
|
register: elastic_stats
|
||||||
|
until: elastic_stats.status == 200
|
||||||
|
retries: 15
|
||||||
|
delay: 6
|
||||||
|
tags:
|
||||||
|
- update_config
|
||||||
|
- update_settings
|
||||||
|
|
||||||
|
- name: "Set VAR"
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
es_cluster_settings:
|
||||||
|
persistent:
|
||||||
|
cluster.max_shards_per_node: "{{ elastic_cluster_settings_max_shards }}"
|
||||||
|
tags:
|
||||||
|
- update_config
|
||||||
|
- update_settings
|
||||||
|
|
||||||
|
- name: "Set cluster config"
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "https://localhost:9200/_cluster/settings"
|
||||||
|
method: PUT
|
||||||
|
ca_path: "{{ service_base_path }}/{{ elastic_id }}/certs/ca/ca.crt"
|
||||||
|
user: "{{ elastic_admin_username }}"
|
||||||
|
password: "{{ elastic_admin_password }}"
|
||||||
|
headers:
|
||||||
|
Content-Type: "application/json"
|
||||||
|
Accept: "application/json"
|
||||||
|
body: "{{ es_cluster_settings | to_json }}"
|
||||||
|
force_basic_auth: true
|
||||||
|
status_code: 200
|
||||||
|
when:
|
||||||
|
- inventory_hostname == groups['elastic'][0]
|
||||||
|
tags:
|
||||||
|
- update_config
|
||||||
|
- update_settings
|
||||||
Loading…
Reference in New Issue