server-config/roles/ubuntu-mirror/tasks/local-mirror.yml

29 lines
592 B
YAML
Raw Normal View History

---
# Configurazione del server come repo
- name: Installazione apt-mirror
yum:
pkg: apt-mirror
state: present
become: yes
- name: Installazione configurazione apt-mirror
2016-02-16 23:43:26 +00:00
template:
src: apt-mirror.list
dest: /etc/apt-mirror.list
become: yes
- name: Installazione cron per sincronizzazione notturna
copy:
src: apt-mirror-cron
dest: /etc/cron.daily/apt-mirror
mode: 0755
become: yes
- name: Installazione logrotate per sincronizzazione notturna
copy:
src: apt-mirror-logrotate
dest: /etc/logrotate.d/apt-mirror
mode: 0644
become: yes