From d30cfdd2cf703b6ee1f01f47dfffa8665962b78c Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Mon, 31 Mar 2025 13:45:59 +0200 Subject: [PATCH] websites: disable fedoraproject sync on-demand --- roles/fedora-web/main/files/cron-sync-fedora-web-v3 | 1 - roles/fedora-web/main/tasks/main.yml | 2 +- roles/fedora-web/main/templates/cron-sync-fedora-web-v3 | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 roles/fedora-web/main/files/cron-sync-fedora-web-v3 create mode 100644 roles/fedora-web/main/templates/cron-sync-fedora-web-v3 diff --git a/roles/fedora-web/main/files/cron-sync-fedora-web-v3 b/roles/fedora-web/main/files/cron-sync-fedora-web-v3 deleted file mode 100644 index cf3de10b0e..0000000000 --- a/roles/fedora-web/main/files/cron-sync-fedora-web-v3 +++ /dev/null @@ -1 +0,0 @@ -25 * * * * root /usr/local/bin/lock-wrapper fedoraprojectsync /usr/local/sbin/fedoraproject-sync >& /dev/null diff --git a/roles/fedora-web/main/tasks/main.yml b/roles/fedora-web/main/tasks/main.yml index 864b8ad143..17f9df9f4c 100644 --- a/roles/fedora-web/main/tasks/main.yml +++ b/roles/fedora-web/main/tasks/main.yml @@ -17,7 +17,7 @@ - fedora-web/main - name: Copy in the sync-fedora-web-v3 cronjob - ansible.builtin.copy: + ansible.builtin.template: src: cron-sync-fedora-web-v3 dest: /etc/cron.d/sync-fedora-web tags: diff --git a/roles/fedora-web/main/templates/cron-sync-fedora-web-v3 b/roles/fedora-web/main/templates/cron-sync-fedora-web-v3 new file mode 100644 index 0000000000..4386c61b29 --- /dev/null +++ b/roles/fedora-web/main/templates/cron-sync-fedora-web-v3 @@ -0,0 +1 @@ +{{ "# " if disable_sync is defined }}25 * * * * root /usr/local/bin/lock-wrapper fedoraprojectsync /usr/local/sbin/fedoraproject-sync >& /dev/null