geerlingguy.php-pecl

Ansible Role: PHP PECL Extensions

CI

This role installs PHP PECL extensions (and optionally pecl) on servers where PHP is already set up.

Requirements

You need to have PHP installed on your server. This role works well with the geerlingguy.php role.

If you don’t have php-pear (for RedHat) or php-pecl (for Debian) installed, set php_pecl_install_pecl: true to make this role install the necessary package.

Role Variables

Here are the variables you can use, along with their default values (check defaults/main.yml):

  • php_pecl_install_pecl: false
    This decides if php-pecl (for Debian) or php-pear (for RedHat) should be installed.

  • php_pecl_install_command: "pecl install"
    This is the command used to install extensions. The default works in most cases, but if you are on Ubuntu 14.04 LTS and face an issue, change this to "pecl install -Z".

  • php_pecl_extensions: []
    A list of extensions to install using pecl install. For example, to install extensions like XDebug, add them to the list:

    php_pecl_extensions:
      - redis
      - xdebug
    

Dependencies

  • geerlingguy.php

Example Playbook

- hosts: webservers
  vars_files:
    - vars/main.yml
  roles:
    - geerlingguy.php-pecl

In vars/main.yml:

php_pecl_extensions:
  - redis
  - xdebug

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, who wrote Ansible for DevOps.

Informazioni sul progetto

PHP PECL extension installation.

Installa
ansible-galaxy install geerlingguy.php-pecl
Licenza
mit
Download
144.5k
Proprietario
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns