nginx
+php7.0-fpm
postfix
- php backend with very simple frontend (send request params to specified email)
mailhog
for testing and development- two environments:
staging
andproduction
- For control machine unix-like system with
python2.7
will be enough - For working machines debian based distro with
python2.7
andpip2
will be enough (tested on ubuntu server 16.04)
- Clone repository:
git clone https://github.com/VTurturika/ansible && cd ansible
-
Set ip of your remote hosts in files
production
andstaging
. (Be careful! ip temporary harcoded to playbook) -
Change username in
app.yml
-
For deploy
production
enviromnent use
ansible-playbook -i production app.yml
- For deploy
staging
enviromnent use
ansible-playbook -i staging app.yml
- Also, for
staging
environment you may explicit start and stopmailhog
ansible-playbook -i staging app.yml -e mailhog=start
ansible-playbook -i staging app.yml -e mailhog=stop
- If your remote host requires sudo password use
--ask-become-pass
- By default
mailhog
web UI using 8025 port - Backend also available here