First work on the mdapi role
This commit is contained in:
parent
d654db07ef
commit
cac003cb03
2 changed files with 25 additions and 0 deletions
21
roles/mdapi/tasks/main.yml
Normal file
21
roles/mdapi/tasks/main.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
# Configuration for the mdapi webapp
|
||||
|
||||
- name: install needed packages
|
||||
yum: pkg={{ item }} state=present
|
||||
with_items:
|
||||
- mdapi
|
||||
tags:
|
||||
- mdapi
|
||||
- packages
|
||||
|
||||
- name: Install the meta-data fetch cron job
|
||||
when: inventory_hostname.startswith(('mdapi01'))
|
||||
template: src={{ item.file }}
|
||||
dest={{ item.location }}/{{ item.file }}
|
||||
with_items:
|
||||
- { file: 'mdapi.cron', location: /etc/cron.d }
|
||||
tags:
|
||||
- mdapi
|
||||
- config
|
||||
|
4
roles/mdapi/templates/mdapi.cron
Normal file
4
roles/mdapi/templates/mdapi.cron
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Fetches repo metadata for mdapi
|
||||
#
|
||||
*/20 * * * * root /usr/bin/mdapi-get_repo_md
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue