Ansible Playbook configuring all servers

Jeroen De Meerleer db9af566f9 Merge branch 'task/friendica-develop' 2 weeks ago
group_vars 094bbbc268 Back to develop branch 2 weeks ago
host_vars a937d689b8 Updated logrotate 1 month ago
roles f3af0b207e Updated roles 2 weeks ago
.gitignore 4dec609961 Gogs restore working 1 year ago
.gitmodules fda65e4ccb Geerlingguy.letsencrypt is now on origin 1 month ago e169a36c88 Updated readme to match current situation 8 months ago e169a36c88 Updated readme to match current situation 8 months ago
ansible.cfg bf8e34320f Changed deprecated hostsfile to inventory 1 year ago
hosts c3e30d256d Updated to new hostnames 9 months ago
playbook.yml 3e9943b76d Not loading role for webservers 3 months ago
secrets.yml ff90969c84 Updated private keys 11 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.