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

34 lines
1,011 B
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 directory to mirror repos to
file: dest={{grokmirror_topdir}} mode=0755 state=directory
tags:
- grokmirror-mirror
- name: install grokmirror repos config file from template
template: src=repos.conf dest={{grokmirror_topdir)/repos.conf user=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 user=root group=root mode=644
tags:
- grokmirror-mirror
- name: install grokmirror repos cron job
template: src=grokmirror.cron dest=/etc/cron.d/grokmirror.cron user=root group=root mode=644
tags:
- grokmirror-mirror
- name: install grokmirror fsck cron job
template: src=grokfsck.cron dest=/etc/cron.d/grokfsck.cron user=root group=root mode=644
tags:
- grokmirror-mirror