From c1014c4a8cdd285ff77fbb7fa4972c43b144eb31 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Oct 12 2020 21:07:33 +0000 Subject: Change download-sync location and update script. The download-sync for rdu-cc needs to use the /root versus default quick-fedora-mirror git repository. This allows for it to only copy the modules needed. Signed-off-by: Stephen Smoogen --- diff --git a/files/download/download-sync.cron.cc-rdu01 b/files/download/download-sync.cron.cc-rdu01 new file mode 100644 index 0000000..f656475 --- /dev/null +++ b/files/download/download-sync.cron.cc-rdu01 @@ -0,0 +1,2 @@ +# Run quick mirror fedora every 10minutes +*/10 * * * * root flock -n -E0 /tmp/download-sync -c '/root/quick-fedora-mirror/quick-fedora-mirror -c /root/quick-fedora-mirror.conf' diff --git a/playbooks/groups/download.yml b/playbooks/groups/download.yml index c83b178..bb97b8a 100644 --- a/playbooks/groups/download.yml +++ b/playbooks/groups/download.yml @@ -70,7 +70,7 @@ copy: src="{{ files }}/download/sync-up-downloads.sh.cc-rdu01" dest=/usr/local/bin/sync-up-downloads owner=root group=root mode=755 when: inventory_hostname == 'download-cc-rdu01.fedoraproject.org' - name: put in cron job for syncing - copy: src="{{ files }}/download/download-sync.cron.ib01" dest=/etc/cron.d/download-sync owner=root group=root mode=644 + copy: src="{{ files }}/download/download-sync.cron.cc-rdu01" dest=/etc/cron.d/download-sync owner=root group=root mode=644 when: inventory_hostname == 'download-cc-rdu01.fedoraproject.org' handlers: