summaryrefslogtreecommitdiff
path: root/ansible/roles/debian-mirror/tasks/main.yml
blob: 71b7e0c615d30e869734f1d443586a5197037dd0 (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
- name: "install debmirror"
  apt:
    name:
      - debmirror

- name: "install mirror-debian script"
  copy:
    src: mirror-debian
    dest: /usr/local/bin
    mode: 0755

- name: "install cronjob for mirroring Debian"
  cron:
    name: "mirror Debian"
    user: debmirror
    minute: "0"
    hour: "5,19"
    job: "/usr/local/bin/mirror-debian /srv/http/debmirror/debian"

- name: "set MAILTO in crontab"
  cron:
    user: debmirror
    env: yes
    name: MAILTO
    value: root