summaryrefslogtreecommitdiffstats
path: root/roles/abrt/retrace-local/tasks/cron.yml
blob: a95249281f179e90ecf9c250714f212b65ba55fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---

- name: Create cron job for retrace-server
  cron:
    name: "rs reposync fedora {{ item[0] }} {{ item[1] }}"
    user: retrace
    job: "retrace-server-reposync fedora {{ item[0] }} {{ item[1] }} >> /var/log/retrace-server/reposync_error.log 2>&1"
    with_nested:
      - "{{ rs_internal_fedora_vers }}"
      - "{{ rs_internal_arch_list }}"
    special_time: daily
    state: present

- name: Create cron job for retrace-server
  cron:
    name: "rs reposync centos 7 x86_64"
    user: retrace
    job: "retrace-server-reposync centos 7 x86_64 >> /var/log/retrace-server/reposync_error.log 2>&1"
    special_time: daily
    state: present

- name: Create cron job for retrace-server
  cron:
    name: "retrace-server-cleanup"
    user: retrace
    job: "/usr/bin/retrace-server-cleanup >> /var/log/retrace-server/cleanup_error.log 2>&1"
    special_time: daily
    state: present