From 44a97f1844b5addb7a6ee3d9b27997d27dee9661 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Tue, 14 Aug 2018 22:19:57 +0200 Subject: mw-backend: Creating timer for running runJobs.php. --- ansible/roles/mw-backend/tasks/main.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ansible/roles/mw-backend/tasks') diff --git a/ansible/roles/mw-backend/tasks/main.yml b/ansible/roles/mw-backend/tasks/main.yml index 66d1aa7..9db9be9 100644 --- a/ansible/roles/mw-backend/tasks/main.yml +++ b/ansible/roles/mw-backend/tasks/main.yml @@ -98,6 +98,20 @@ template: src: etc/mediawiki/LocalSettings.php.j2 dest: /etc/mediawiki/LocalSettings.php + - name: mediawiki job systemd service + notify: systemd daemon-reload + copy: + src: etc/systemd/system/mw-jobqueue.service + dest: /etc/systemd/system/mw-jobqueue.service + - name: mediawiki job systemd timer + notify: systemd daemon-reload + copy: + src: etc/systemd/system/mw-jobqueue.timer + dest: /etc/systemd/system/mw-jobqueue.timer + - systemd: + enabled: true + state: started + name: mw-jobqueue.timer - name: Semantic MediaWiki tags: -- cgit v1.2.3