taskotron: install grokmirror cron jobs into /etc/cron.d
This commit is contained in:
parent
5b5b898c26
commit
076ce8ea28
1 changed files with 0 additions and 10 deletions
|
@ -46,15 +46,6 @@
|
||||||
- name: generate grokmirror config
|
- name: generate grokmirror config
|
||||||
template: src=repos.conf.j2 dest=/etc/grokmirror/repos.conf owner={{ grokmirror_user }} group={{ grokmirror_user }} mode=0644
|
template: src=repos.conf.j2 dest=/etc/grokmirror/repos.conf owner={{ grokmirror_user }} group={{ grokmirror_user }} mode=0644
|
||||||
|
|
||||||
- name: install cron jobs to update repos
|
|
||||||
cron:
|
|
||||||
name="pull repo for {{ item.name }}"
|
|
||||||
user={{ grokmirror_user }}
|
|
||||||
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
|
- name: install cron jobs to update repos
|
||||||
template:
|
template:
|
||||||
src: grokmirror-update-repos.cron.j2
|
src: grokmirror-update-repos.cron.j2
|
||||||
|
@ -62,4 +53,3 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
when: deployment_type in ['dev']
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue