Sets up a PHP project running behind php-fpm and nginx.
See default variables for details.
- Ansible 2.2+
- One of these target systems:
- Debian jessie
- Ubuntu 14.04
- Ubuntu 16.04
- Nginx installed. Recommended role: ansible-nginx
- role: php-fpm-nginx
php_base_name: project_name
php_domain_name: project_name.example.com
php_site_root: /opt/project_name/www
php_index_filename: index.php
This role supports uninstalling cleanly. If you run the role with php_uninstall
to yes
,
resources created by the role will be removed. This however, excludes system packages because we
want to avoid removing packages that another role might need.