Skip to content

Latest commit

 

History

History
32 lines (23 loc) · 844 Bytes

README.md

File metadata and controls

32 lines (23 loc) · 844 Bytes

php-fpm-nginx

Sets up a PHP project running behind php-fpm and nginx.

See default variables for details.

Requirements

  • Ansible 2.2+
  • One of these target systems:
    • Debian jessie
    • Ubuntu 14.04
    • Ubuntu 16.04
  • Nginx installed. Recommended role: ansible-nginx

Example

- 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

Uninstall

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.