Created
May 17, 2019 12:07
-
-
Save DBezemer/23a7268dbd85144d1bd07df825c37105 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: index | |
gather_facts: no | |
tasks: | |
- name: Stop Monit | |
service: name=kaltura-monit state=stopped | |
- name: Stop Sphinx | |
service: name=kaltura-sphinx state=stopped | |
- name: Remove Existing Sphinx Data | |
shell: "/bin/sh -c 'rm -f /opt/kaltura/sphinx/kaltura_*'" | |
- name: Remove Existing Sphinx Binlog Data | |
shell: "/bin/sh -c 'rm -f /opt/kaltura/log/sphinx/data/binlog.*'" | |
- name: Start Sphinx | |
service: name=kaltura-sphinx state=started | |
- name: Start Monit | |
service: name=kaltura-monit state=started | |
- hosts: firstapi | |
gather_facts: no | |
vars_files: | |
- /etc/ansible/vault/vault.yml | |
tasks: | |
- name: Remove Sleep From Sync Script | |
lineinfile: | |
path: /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php | |
regexp: '^\s+u?sleep\(\d+\);' | |
state: absent | |
- name: Reindex Entry Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute entryPeer" | |
- name: Reindex Category Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute categoryPeer" | |
- name: Reindex User Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute kuserPeer" | |
- name: Reindex CuePoint Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute CuePointPeer" | |
- name: Reindex Tag Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute TagPeer" | |
- name: Reindex Metadata Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute MetadataPeer" | |
- name: Reindex CategoryUser Objects | |
command: "{{ php_bin }} /opt/kaltura/app/alpha/scripts/utils/updatePartnerEntries2Sphinx.php -1 execute categoryKuserPeer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment