ansible/roles/grokmirror_mirror/tasks/main.yml
Kevin Fenzi 4ff29f22d0 backup01: grokmirror: make ansible make a local user
By default ansible is seeing the ldap 'grokmirror' user and not making a
local one. This makes the grokmirror cron job fail because the ldap
grokmirror user is locked. So, lets make a local one so cron works.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2023-03-06 17:28:10 -08:00

37 lines
1.1 KiB
YAML

---
#
# Setup a host to mirror our various git repos with grokmirror
#
- name: install grokmirror
package: name=python3-grokmirror state=installed
tags:
- grokmirror-mirror
- name: create grokmirror user to own mirrored file and run scripts
user: name=grokmirror local=true
- 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 config file from template
template: src=grokmirror.conf dest={{grokmirror_topdir}}/grokmirror.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