Add the crawler sub-role for mirrormanager
This commit is contained in:
parent
d271b86f2d
commit
8f001149e6
1 changed files with 26 additions and 0 deletions
26
roles/mirrormanager/crawler/tasks/main.yml
Normal file
26
roles/mirrormanager/crawler/tasks/main.yml
Normal file
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
# Configuration for MirrorManager's crawler
|
||||
|
||||
- name: clean yum metadata
|
||||
command: yum clean all
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: install needed packages
|
||||
yum: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- mirrormanager-crawler
|
||||
tags:
|
||||
- packages
|
||||
|
||||
- name: install MM configuration file
|
||||
template: src={{ roles }}/mirrormanager/templates/mirrormanager.cfg
|
||||
dest=/etc/mirrormanager/mirrormanager.cfg
|
||||
mode=600
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: install the cron job
|
||||
copy: src=crawler.cron dest=/etc/cron.d/mm2_crawler.cron
|
||||
tags:
|
||||
- config
|
Loading…
Add table
Add a link
Reference in a new issue