From 60e46834d1eaeb8a9fdfcccce0c5e6ea97c9dc41 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Sun, 1 Jul 2018 23:43:05 +0000 Subject: [PATCH] ok lets try this --- ...downloads.cc-rdu01.sh => sync-up-downloads.sh.cc-rdu01} | 0 playbooks/groups/download.yml | 7 +++++++ 2 files changed, 7 insertions(+) rename files/download/{sync-up-downloads.cc-rdu01.sh => sync-up-downloads.sh.cc-rdu01} (100%) diff --git a/files/download/sync-up-downloads.cc-rdu01.sh b/files/download/sync-up-downloads.sh.cc-rdu01 similarity index 100% rename from files/download/sync-up-downloads.cc-rdu01.sh rename to files/download/sync-up-downloads.sh.cc-rdu01 diff --git a/playbooks/groups/download.yml b/playbooks/groups/download.yml index 8b0021df71..a9e0dd34c8 100644 --- a/playbooks/groups/download.yml +++ b/playbooks/groups/download.yml @@ -64,6 +64,13 @@ package: name=bc state=present when: inventory_hostname == 'download-ib01.fedoraproject.org' + - name: put in script for syncing on download-cc-rdu01 + 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" dest=/etc/cron.d/download-sync owner=root group=root mode=644 + when: inventory_hostname == 'download-cc-rdu01.fedoraproject.org' +