ansible/roles/grokmirror_mirror/tasks/main.yml
2017-10-16 19:56:35 +00:00

42 lines
1.3 KiB
YAML

---
#
# Setup a host to mirror our various git repos with grokmirror
#
- name: install grokmirror
package: name=python-grokmirror state=installed
tags:
- grokmirror-mirror
- name: create grokmirror user to own mirrored file and run scripts
user: name=grokmirror
- name: create directory to mirror repos to
file: dest={{grokmirror_topdir}} mode=0755 state=directory owner=grokmirror
tags:
- grokmirror-mirror
- name: create directory to mirror site to
file: dest={{grokmirror_topdir}}/src.fedoraproject.org mode=0755 state=directory owner=grokmirror
tags:
- grokmirror-mirror
- name: install grokmirror repos config file from template
template: src=repos.conf dest={{grokmirror_topdir}}/repos.conf owner=root group=root mode=644
tags:
- grokmirror-mirror
- name: install grokmirror fsck config file from template
template: src=fsck.conf dest={{grokmirror_topdir}}/fsck.conf owner=root group=root mode=644
tags:
- grokmirror-mirror
- name: install grokmirror repos cron job
template: src=grokmirror.cron dest=/etc/cron.d/grokmirror.cron owner=root group=root mode=644
tags:
- grokmirror-mirror
- name: install grokmirror fsck cron job
template: src=grokfsck.cron dest=/etc/cron.d/grokfsck.cron owner=root group=root mode=644
tags:
- grokmirror-mirror