This Project designed for use in multi-environment.
Parameters of servers located in inventories
directory. Environment inventory split to dev
, stage
, prod
.
- Install PostgreSQL with import demo dump
- Setup docker on servers with Ubuntu or CentOS
- Prepare servers to using Nginx.
- Create example "Hello" sites for Nginx
- Run Nginx in Docker (nginx:latest) on prepared servers
- Ubuntu 18.04
- CentOS 8
You must to set your servers in inventory
in matched directories.
Example you can see in file ./inventories/dev/inventory
ansible-playbook -i inventories/dev/inventory playbooks/full_install.yml
- install-postgres.yml - for installation PostgreSQL and import demo dump
- start-nginx.yml - for setup docker, prepare nginx config and sites, run nginx in docker
- create_users.yml - for create Linux users