softasap.sa-php-fpm

sa-php-fpm

Build Status

This is a basic role for installing php-fpm. It optionally includes pre-configured xdebug support and a global installation of Composer as composer{{php_version}}.

Usage Examples:

Simple

 - {
     role: "sa-php-fpm"
   }

Advanced

For a complete lamp installation, see the box-example.

 - {
     role: "sa-php-fpm",
     option_install_xdebug: true,
     php_xdebug_version: 2.5.5,
     xdebug_remote_enable: 1,
     # IMPORTANT - Setting the option below to 1 on production servers could cause security issues
     # because xdebug_remote_host will be ignored
     xdebug_remote_connect_back: 0,
     xdebug_remote_host: "127.0.0.1",

     option_install_composer: true,

     php_fpm_user: www-data,
     php_fpm_group: www-data,

     php_fpm_listen: sock,  # Also supports tcp 9000
     php_family: default,     # Options: 5.6 | 7.0 | hhvm | default

     pkg_dependencies:
       - git
       - curl
       - python-dev
       - libmysqlclient-dev
       - unzip

     php_extensions:
       - "{{php_module_prefix}}-mysql"
       - "{{php_module_prefix}}-intl"
       - "{{php_module_prefix}}-xmlrpc"
       - "{{php_module_prefix}}-curl"
       - "{{php_module_prefix}}-gd"

     timezone: "Europe/London",

     custom_pool_properties:
       - {regexp: "^[;]?listen.owner *", line: "listen.owner  = {{php_fpm_user}}"}
       - {regexp: "^[;]?listen.group *", line: "listen.group  = {{php_fpm_group}}"}
   }

Using with Ansible Galaxy Workflow

If you installed the sa-php-fpm role with the command:

ansible-galaxy install softasap.sa-php-fpm

You will find the role in the folder library/softasap.sa-php-fpm. Make sure to update the path accordingly.

 - {
     role: "softasap.sa-php-fpm"
   }

The code is licensed under both the BSD 3-Clause and the MIT License. Choose the license that fits your needs best.

Stay in touch:

Informazioni sul progetto

standalone role for php installation in fastcgi mode

Installa
ansible-galaxy install softasap.sa-php-fpm
Licenza
mit
Download
149
Proprietario
Get your application deployed in a robust way