Installs PHP PECL extensions on servers with PHP already installed.
PHP must already be installed on the server, so the pecl
command can be run.
Available variables are listed below, along with default values (see vars/main.yml
):
php_pecl_extensions:
- xdebug
...
A list of extensions that should be installed via pecl install
.
- geerlingguy.php
- hosts: webservers
vars_files:
- vars/main.yml
roles:
- { role: geerlingguy.php-pecl }
Inside vars/main.yml
:
php_pecl_extensions:
- xdebug
- Continue refining the
changed
/failed
conditions for PECL. Yuck.
MIT / BSD
This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.