- Requires Ansible v2.0+
- Expects Ubuntu hosts
- Expects Laravel 5.x App to be deployed
$ sudo apt-get update
$ sudo apt-get install ansible
$ ssh-keygen -t rsa
$ ssh-keygen -t rsa -b 2048 -v
Once you have entered the Gen Key command, you will get a few more questions, you can press enter here.
$ ssh-copy-id <ssh_remote_user>@<your-ip-address>
$ git clone https://github.com/lauricdd/ansible-ubuntu-ngnix-mongodb-php7-laravel.git
$ cd ansible-ubuntu-ngnix-mongodb-php7.1-laravel
$ nano hosts
output-example:
[<staging>]
<your-ip-address>
$ nano vars.yml
$ cd ansible-ubuntu-ngnix-mongodb-php7-laravel
$ ansible-playbook -i hosts main.yml
https://<your-ip-address>