From f50cad1870d56db3bab8a43f0ca8f8bf37d483e4 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 14 Jan 2021 16:19:05 +0100 Subject: [PATCH] Since zanata is down, this cron job no longer work --- roles/fedora-web/build/tasks/main.yml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/roles/fedora-web/build/tasks/main.yml b/roles/fedora-web/build/tasks/main.yml index e02a41f4b8..239c59b614 100644 --- a/roles/fedora-web/build/tasks/main.yml +++ b/roles/fedora-web/build/tasks/main.yml @@ -58,7 +58,35 @@ - fedora-web when: env == 'staging' +- name: Copy syncStatic script (stg) + when: env == "staging" + copy: > + src=syncStatic.stg.sh dest=/usr/local/bin/syncStatic owner=root group=root + mode=0755 + tags: + - fedora-web + +- name: Copy syncStatic script (prod) + when: env == "production" + copy: > + src=syncStatic.sh dest=/usr/local/bin/syncStatic owner=root group=root + mode=0755 + tags: + - fedora-web + +- name: Install the syncStatic and syncTranslations cronjobs + copy: > + src={{item}}.cron dest=/etc/cron.d/{{item}}.cron + owner=root group=root mode=0644 + with_items: + - syncStatic + tags: + - fedora-web + - cron + - name: Remove the syncTranslations cronjob file: path: /etc/cron.d/syncTranslations.cron state: absent + tags: + - cron