add fedora report_mirror tool and enable it

This commit is contained in:
Timo Makinen 2019-05-12 23:55:21 +03:00
parent 50d4fad823
commit 12f654bb13
4 changed files with 112 additions and 0 deletions

View file

@ -6,6 +6,9 @@
user: root
gather_facts: true
vars_files:
- /srv/ansible-private/vars.yml
pre_tasks:
- name: mount /export
mount:
@ -21,6 +24,11 @@
- base
- mirror/base
- mirror/thinlinc
- role: mirror/reportmirror
hostname: mirrors.foo.sh
mirrors: [ epel, fedora ]
sitename: foo.sh
password: "{{ report_mirror_pass }}"
- role: mirror/sync
label: fedora-epel
source: "rsync://rsync.nic.funet.fi/ftp/pub/mirrors/fedora.redhat.com/pub/epel"
@ -28,6 +36,7 @@
- "--exclude=SRPMS"
- "--exclude=debug"
- "--delete-excluded"
postcmd: /usr/bin/report_mirror
- role: mirror/sync
label: fedora
source: "rsync://rsync.nic.funet.fi/ftp/pub/mirrors/fedora.redhat.com/pub/fedora/linux/"
@ -42,6 +51,7 @@
- "--exclude=armhfp"
- "--exclude=debug"
- "--delete-excluded"
postcmd: /usr/bin/report_mirror
- role: mirror/sync
label: openbsd
source: "rsync://ftp.eenet.ee/OpenBSD/"