Modified download place for doraemon. Installing ubuntu-mirror only on non-Virtualbox machines. Adding synchronization job for apt-mirror and a logrotation for the sync task.
This commit is contained in:
parent
c956f21343
commit
022b3325ec
@ -14,7 +14,7 @@
|
||||
when: check_doraemon_pkg|changed
|
||||
|
||||
- name: Installazione doraemon
|
||||
yum: pkg=http://syntaxerrormmm.zapto.org/downloads/rpm/doraemon-1.0.0-2.ns6.noarch.rpm state=present
|
||||
yum: pkg=http://sys42.eu/downloads/rpm/doraemon-1.0.0-2.ns6.noarch.rpm state=present
|
||||
when: check_doraemon_pkg|changed
|
||||
sudo: yes
|
||||
|
||||
|
3
roles/ubuntu-mirror/files/apt-mirror-cron
Executable file
3
roles/ubuntu-mirror/files/apt-mirror-cron
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt-mirror >/var/log/apt-mirror.log 2>&1
|
6
roles/ubuntu-mirror/files/apt-mirror-logrotate
Normal file
6
roles/ubuntu-mirror/files/apt-mirror-logrotate
Normal file
@ -0,0 +1,6 @@
|
||||
/var/log/apt-mirror.log {
|
||||
daily
|
||||
rotate 15
|
||||
compress
|
||||
missingok
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
---
|
||||
- include: ubuntu-mirror.yml
|
||||
tags:
|
||||
- "client-install"
|
||||
when: ansible_bios_version != "VirtualBox"
|
||||
tags: ubuntu-mirror
|
||||
|
@ -8,3 +8,11 @@
|
||||
- name: Installazione configurazione apt-mirror
|
||||
copy: src=apt-mirror.list dest=/etc/apt-mirror.list
|
||||
sudo: yes
|
||||
|
||||
- name: Installazione cron per sincronizzazione notturna
|
||||
copy: src=apt-mirror-cron dest=/etc/cron.daily/apt-mirror mode=0755
|
||||
sudo: yes
|
||||
|
||||
- name: Installazione logrotate per sincronizzazione notturna
|
||||
copy: src=apt-mirror-logrotate dest=/etc/logrotate.d/apt-mirror mode=0644
|
||||
sudo: yes
|
||||
|
Loading…
x
Reference in New Issue
Block a user