Giter VIP home page Giter VIP logo

ansible-role-php7's Introduction

ovv.php7

Build Status

Ansible role to install and configure php-fpm pools.

Installation

To install this roles clone it into your roles directory.

$ git clone https://github.com/ovv/ansible-role-php7.git ovv.php7

If your playbook already reside inside a git repository you can clone it by using git submodules.

$ git submodule add -b master https://github.com/ovv/ansible-role-php7.git ovv.php7

Role Variables

  • php_version: PHP version to install
  • custom_php_packages: Custom packages to install (default to empty).
  • php_pools: Dict describing the php-fpm pools. Use the key as pool name.
    • user: Pool user (required).
    • group: Pool group (default to user).
    • createhome: Create home for user (default to False).
    • home: user home (default to /home/{{ user }})
    • working_dir: Pool working directory (default to /tmp).
    • socket: PHP-fpm socket path (default to /var/run/php7.0-fpm-{{ key }}.sock)
    • listen_owner: Socket listen owner (default to www-data).
    • listen_group: Socket listen group (default to www-data).
    • servers: Servers to start (default to 2).
    • max_children Maximum child servers (default to 5).
    • min_spare_servers: Minimum spare servers (default to 1).
    • max_spare_servers: Maximum spare servers (default to 3).
    • request_terminate_timeout: Maximum request time before timeout (default to 300).
  • base_php_packages: Required packages to install (see defaults).
  • php_memory_limit: PHP memory limit (default to 128M).
  • php_max_execution_time: PHP max execution time (default to 300).
  • php_smtp_host: SMTP host (default to localhost).
  • php_smtp_port: SMTP port (default to 25).
  • php_sendmail_path: Sendmail command (default to /usr/sbin/sendmail -t -i).

Example Playbook

- hosts: localhost
  vars:
    php_pools:
      example:
        user: example
  roles:
    - ovv.php7

License

MIT

ansible-role-php7's People

Contributors

ovv avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.