summaryrefslogtreecommitdiff
path: root/ansible/roles/debian-mirror/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/roles/debian-mirror/tasks/main.yml')
-rw-r--r--ansible/roles/debian-mirror/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/ansible/roles/debian-mirror/tasks/main.yml b/ansible/roles/debian-mirror/tasks/main.yml
index 71b7e0c..bb0ae95 100644
--- a/ansible/roles/debian-mirror/tasks/main.yml
+++ b/ansible/roles/debian-mirror/tasks/main.yml
@@ -2,6 +2,7 @@
apt:
name:
- debmirror
+ - screen
- name: "install mirror-debian script"
copy:
@@ -9,6 +10,13 @@
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"
@@ -23,4 +31,3 @@
env: yes
name: MAILTO
value: root
-