mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 10:31:56 +08:00
taskotron-dev: try a better way to deploy cron files
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user