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.
2017-05-18 00:18:03 +02:00
- name : Populate elasticsearch index from database
hosts : dbs
roles :
- common
- postgresql
- elasticsearch
tasks :
2017-06-04 02:28:26 +02:00
# Needed otherwise we'll lose information when people upload when we're
# populating to the new index.
# DONT FORGET TO RE-ENABLE THE CRON JOB AFTER
- name : Disable reindex cron job
command : mv "/etc/cron.d/reindex_{{ nyaapantsu_torrent_tablename }}" /tmp/
become : true
2017-05-18 00:18:03 +02:00
- name : Index the database into elasticsearch
command : python "{{ nyaapantsu_directory }}/index_nyaapantsu.py"
environment :
PANTSU_DBPARAMS : "host=localhost port={{ nyaapantsu_pgpool_port }} user={{ nyaapantsu_user }} dbname={{ nyaapantsu_dbname }} sslmode=disable password={{ nyaapantsu_password }}"
PANTSU_ELASTICSEARCH_INDEX : "{{ nyaapantsu_elasticsearch_index }}"
2017-05-31 04:22:12 +02:00
PANTSU_TORRENT_TABLENAME : "{{ nyaapantsu_torrent_tablename }}"