Installs a simple LNMP-Stack for development-environments on the target machine.
This role will install a LNMP-Stack along with X-Debug and Blackfire
PHP will run via FPM. PHP can be installed in different Versions (see documentation of geerlingguy.php-versions for more details)
If LNMP_prepare_doc_root
is set to true
the role will create the document root for the project and automatically set rwx-permissions for the user executing ansible and the user executing php-fpm.
Ubuntu 16.04
Beside the variables of the dependencies this role has the following vars:
project_tag
(name of the project, defaults toproject_tag_not_set
allowed characters AZaz.-_0-9)
This is used to do the following things by default:- mysql root password
- last part of the www-root for the project
www_root
(path of the www-root, defaults to/var/www
)vhosts_root
(path to where the virtual hosts websites files will be stored, defaults to/var/www/vhosts
)lnmp_prepare_doc_root
(if the playbook should create the document root of the current project)
- geerlingguy.nginx
- geerlingguy.php-versions
- geerlingguy.php
- geerlingguy.php-mysql
- geerlingguy.mysql
- geerlingguy.php-xdebug
- geerlingguy.blackfire
---
- hosts: all
become: true
vars:
project_tag: "LAMP"
roles:
- { role: fourforbusiness.dev-lnmp }
MIT / BSD
This role was created in 2018 by four for business AG.