taskotron-dev: try a better way to deploy cron files

This commit is contained in:
Kamil Páral 2019-05-29 15:32:31 +02:00
parent c94ff57bab
commit 987ba63be3

View file

@ -53,3 +53,13 @@
special_time=hourly
job="cd {{ grokmirror_basedir }}/{{ item.name }} && git fetch origin {{ grokmirror_default_branch }}:{{ grokmirror_default_branch }}"
with_items: "{{ grokmirror_repos }}"
when: deployment_type in ['stg', 'prod']
- name: install cron jobs to update repos
template:
src: grokmirror-update-repos.cron.j2
dest: /etc/cron.d/grokmirror-update-repos.cron
owner: root
group: root
mode: 0644
when: deployment_type in ['dev']