This repository contains an Ansible playbook to bootstrap Vagrant box as a local development environment.
Playbook has been tested on centos/7 Vagrant box.
-
common - installs a set of basic utilities
-
percona - installs Percona Server for MySQL v5.7 with a set of additional tools for it
-
php - installs PHP v7.1
-
nginx - installs NGINX web server and alters it's configuration:
- makes NGINX to work from
vagrant
user - sets
worker_processes
to4
- sets
sendfile
tooff
to work properly with VirtualBox shared folders - sets default
server_name
to machine's hostname using{{ ansible_nodename }}
variable - sets default
root
to/vagrant/www
- makes NGINX to work from
-
nginx-php-fpm - installs PHP-FPM and configures NGINX to work with it