forked from LibreSchool/mirror-config
Ansible playbooks for a mirror + backup server
Progetto Scuola
BgLUG - Scenary 1
Starting from a configured Debian 8 machine, this playbooks install some stuff required to set up a mirror for Ubuntu, that keeps syncronized itself during the night.
They also configure some exports for NFS to share the repository and a
backups
folder for backups.
Quick start
Start with a basic Debian 8 machine, with python, sudo and ssh server installed. Then allow your user to use sudo without passwords:
$ echo "${your_user} ALL = (ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers.d/${your_user}
Then you may use these playbooks as follows:
$ vim hosts
$ ansible-playbook init.yml --ask-pass -e "admin_sshkey=/path/to/id_rsa.pub"
$ ansible-playbook setup.yml
Description
Languages
Python
45%
DTrace
36.9%
Shell
18.1%