Ansible Playbook configuring all servers

Jeroen De Meerleer e60aa83c4a Merge branch 'task/role-updates' 2 weeks ago
group_vars d5a186f0db Back to develop 2 weeks ago
host_vars 2a8e8296f2 fixed some typos 4 months ago
roles 96774dd97b Updated roles 2 weeks ago
.gitignore 4dec609961 Gogs restore working 1 year ago
.gitmodules e0080eab0d renamed franklinkim to weareinteractive 2 months ago e169a36c88 Updated readme to match current situation 7 months ago e169a36c88 Updated readme to match current situation 7 months ago
ansible.cfg bf8e34320f Changed deprecated hostsfile to inventory 1 year ago
hosts c3e30d256d Updated to new hostnames 7 months ago
playbook.yml 3e9943b76d Not loading role for webservers 1 month ago
secrets.yml ff90969c84 Updated private keys 9 months ago

Ansible playbook

Copyright (c) 2017-2018 Jeroen De Meerleer

This playbook installs and configures the servers related to


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

  • (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 --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.


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.