Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/deploy/ansible/create_elasticsearch_index.yml
tomleb 991fc73c4e Update elasticsearch index playbooks (#892)
* Update elasticsearch index swapping playbooks

* Add ansible syntax check

* Document index swapping

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml
2017-06-04 10:28:26 +10:00

19 lignes
475 o
YAML

- name: Create elasticsearch index
hosts: dbs
roles:
- common
- elasticsearch
tasks:
- name: Read configuration file
shell: cat "{{ nyaapantsu_directory }}/elasticsearch_settings.yml"
register: config
- name: Configure elasticsearch index
uri:
headers:
Content-Type: application/yaml
url: "http://localhost:9200/{{ nyaapantsu_elasticsearch_index }}"
method: PUT
body: "{{ config.stdout }}"