ok lets see if I can do a cron job without breaking stuff

This commit is contained in:
Stephen Smoogen 2014-06-05 00:18:14 +00:00
parent 45e512ab3f
commit 52ae7d3ccb
2 changed files with 22 additions and 0 deletions

View file

@ -72,3 +72,25 @@
handlers: handlers:
- include: "{{ handlers }}/restart_services.yml" - include: "{{ handlers }}/restart_services.yml"
- name: secondary download virt special jobs
hosts: download-ibiblio
user: root
gather_facts: True
accelerate: "{{ accelerated }}"
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "{{ private }}/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
- include: "{{ handlers }}/restart_services.yml"
tasks:
- name: put in hourly cron job for syncing
action: copy src="{{ files }}/download/cron-hourly-sync.sh" dest=/etc/cron.hourly/sync-mirror.sh owner=root group=root mode=755
handlers:
- include: "{{ handlers }}/restart_services.yml"