blob: 0c681109f1fc7817cb1255f6458c54d166300137 (
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
29
30
31
32
33
|
- name: "install debmirror"
apt:
name:
- debmirror
- screen
- name: "install mirror-debian script"
copy:
src: mirror-debian
dest: /usr/local/bin
mode: 0755
- name: "create directory for mirror"
file:
state: directory
path: /srv/http/debmirror/debian
owner: debmirror
group: debmirror
- name: "install cronjob for mirroring Debian"
cron:
name: "mirror Debian"
user: debmirror
minute: "0"
hour: "12"
job: "/usr/local/bin/mirror-debian /srv/http/debmirror/debian"
- name: "set MAILTO in crontab"
cron:
user: debmirror
env: yes
name: MAILTO
value: root
|