2015-10-31 00:56:28 +01:00
|
|
|
---
|
2015-11-04 23:52:57 +01:00
|
|
|
# Configurazione del server come repo
|
2015-10-31 00:56:28 +01:00
|
|
|
|
2015-11-04 23:52:57 +01:00
|
|
|
- name: Installazione apt-mirror
|
2016-01-12 22:03:15 +01:00
|
|
|
yum:
|
|
|
|
pkg: apt-mirror
|
|
|
|
state: present
|
|
|
|
become: yes
|
2015-10-31 00:56:28 +01:00
|
|
|
|
2015-11-04 23:52:57 +01:00
|
|
|
- name: Installazione configurazione apt-mirror
|
2016-02-17 00:43:26 +01:00
|
|
|
template:
|
2016-01-12 22:03:15 +01:00
|
|
|
src: apt-mirror.list
|
|
|
|
dest: /etc/apt-mirror.list
|
|
|
|
become: yes
|
2015-10-31 00:56:28 +01:00
|
|
|
|
2015-11-04 23:52:57 +01:00
|
|
|
- name: Installazione cron per sincronizzazione notturna
|
2016-01-12 22:03:15 +01:00
|
|
|
copy:
|
|
|
|
src: apt-mirror-cron
|
|
|
|
dest: /etc/cron.daily/apt-mirror
|
|
|
|
mode: 0755
|
|
|
|
become: yes
|
2015-10-31 00:56:28 +01:00
|
|
|
|
2015-11-04 23:52:57 +01:00
|
|
|
- name: Installazione logrotate per sincronizzazione notturna
|
2016-01-12 22:03:15 +01:00
|
|
|
copy:
|
|
|
|
src: apt-mirror-logrotate
|
|
|
|
dest: /etc/logrotate.d/apt-mirror
|
|
|
|
mode: 0644
|
|
|
|
become: yes
|