taskotron-dev: try a better way to deploy cron files
This commit is contained in:
parent
c94ff57bab
commit
987ba63be3
1 changed files with 10 additions and 0 deletions
|
@ -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']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue