This repo contains a setup.yml
playbook to setup:
- An nginx webserver serving traffic in https (thanks to a let's encrypt SSL cert)
- A PostgreSQL database
- A php-fpm application server with the Owncloud code base
The best way to use it is to fork it and adapt it for your own hosts infrastructure.
Roles are all taken from Ansible's public galaxy repositories. They are described in the requirements.yml
file:
- nginx
- php-fpm
- postgresql
- cerbot
Install dependencies by
make install
You will need to change mainly two things:
- your
hosts
inventory to target your own hosts.
edit hosts
- adapt the related
host_vars
. Typically the postgresql admin password.
I personnaly manage secrets thanks to pass
so the password is automatically taken from my store using the pass-hosts.sh
script.
In order to vault your secrets you will thus need to adapt this file to output your vault passphrase
edit pass-hosts.sh
You can now setup everything by simply calling:
make run playbook=setup
See MIT License file