Ansible Playbook configuring all JeroenED.be servers https://www.jeroened.be

Jeroen De Meerleer 29a647b86a Merge branch 'task/fail2ban' 1 week ago
group_vars 3f91656421 Added configuration 1 week ago
host_vars a937d689b8 Updated logrotate 3 months ago
roles 495af525c5 Added fail2ban role 1 week ago
.gitignore 4dec609961 Gogs restore working 1 year ago
.gitmodules 495af525c5 Added fail2ban role 1 week ago
LICENSE.md e169a36c88 Updated readme to match current situation 11 months ago
README.md e169a36c88 Updated readme to match current situation 11 months ago
ansible.cfg bf8e34320f Changed deprecated hostsfile to inventory 1 year ago
hosts c3e30d256d Updated to new hostnames 11 months ago
playbook.yml 2b28f4187a Added fail2ban to playbook 1 week ago
secrets.yml ff90969c84 Updated private keys 1 year ago

README.md

Ansible playbook JeroenED.be

Copyright (c) 2017-2018 Jeroen De Meerleer

This playbook installs and configures the servers related to JeroenED.be.

Prerequisities

To perfectly run the the playbook you need to have servers configured as in the playbook.yml. The servers are:

  • virgin-mojito.jeroened.be (webserver)

All servers need to have python installed and should be ssh-capable.

How to use

First, Clone the repository with all submodules.

git clone https://git.jeroened.be/JeroenED/Ansible-Playbook-JeroenED.be --recurse

Now you can run the playbook with following command.

ansible-playbook playbook.yml -e @secrets.yml

If you also want to restore a backup, add an extra variable "restore=true"

ansible-playbook playbook.yml -e @secrets.yml -e "restore=true"

For more info on how to make the backup see the readme on the jeroened.restore role.

Disclaimer

This playbook is made available because of being open to the people and for educational purposes. You can use this playbook as a reference to your own playbook and even use the code in it.