Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/savoirfairelinux/ansible-php-fpm-nginx


https://github.com/savoirfairelinux/ansible-php-fpm-nginx

ansible ansible-role nginx php-fpm

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

# php-fpm-nginx

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

See [default variables](defaults/main.yml) 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][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.

[ansible-nginx]: https://github.com/savoirfairelinux/ansible-nginx