Configuration for the mirror server + Backup.
Go to file
Emiliano Vavassori f73707085b Merge pull request #3 from syntaxerrormmm/master
Adding Geogebra and Epoptes PPA.
2017-02-22 02:37:06 +01:00
roles Enabling cleanup for Epoptes PPA. 2017-02-17 21:39:03 +01:00
LICENSE.txt Adding license. 2016-04-25 18:39:12 +02:00
README.md Aesthetic fixes to README. 2016-03-10 23:46:51 +01:00
ansible.cfg Initial working import. 2016-03-10 23:43:40 +01:00
hosts Initial working import. 2016-03-10 23:43:40 +01:00
init.yml Initial working import. 2016-03-10 23:43:40 +01:00
setup.yml Initial working import. 2016-03-10 23:43:40 +01:00

README.md

Ansible playbooks for a mirror + backup server

Progetto Scuola BgLUG Logo 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 # change IP address/hostname
$ vim init.yml # change bglug with ${your_user}
$ ansible-playbook init.yml --ask-pass -e "admin_sshkey=/path/to/id_rsa.pub"
$ ansible-playbook setup.yml