diff --git a/roles/common/files/mirror-rsync b/roles/common/files/mirror-rsync new file mode 100644 index 0000000..5b1d5d9 --- /dev/null +++ b/roles/common/files/mirror-rsync @@ -0,0 +1,6 @@ +#!/bin/bash +# Mirror rsync jobs for ftp.thunix.net + +rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/gnu/ /var/www/ftp.thunix.cf/gnu-ftp +rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/alpha/ /var/www/ftp.thunix.cf/gnu-alpha +rsync -rvltpHS --delete-excluded rsync://ftp.gnu.org/old-gnu/ /var/www/ftp.thunix.cf/gnu-old \ No newline at end of file diff --git a/roles/common/tasks/ansible-pull.yml b/roles/common/tasks/ansible-pull.yml index 8c658d6..02af5b2 100644 --- a/roles/common/tasks/ansible-pull.yml +++ b/roles/common/tasks/ansible-pull.yml @@ -5,6 +5,13 @@ owner: root mode: 744 +- name: Add mirror rsync cron job + copy: + src: ../files/mirror-rsync + dest: /etc/cron.daily/mirror-rsync + owner: root + mode: 744 + - name: Adding ansible git repo locally git: repo: 'https://tildegit.org/thunix/ansible.git'