geerlingguy.php-pear
Ansible Role: PHP PEAR Packages
This role installs PHP PEAR packages on servers that already have PHP and php-pear
set up.
Requirements
Make sure PHP and php-pear
(or a similar package) are already installed on the server so that the pear
command can be used.
Role Variables
Here are the available variables, including their default values (check defaults/main.yml
for more details):
php_pear_channels
:- Default: empty list (
[]
). These are the PEAR channels to search for libraries you want to install. PEAR doesn’t automatically find these channels, so you need to list them manually.
- Default: empty list (
php_pear_libraries
:- Default: empty list (
[]
). These are the libraries/extensions you want to install using PEAR.
- Default: empty list (
Dependencies
- geerlingguy.php
Example Playbook
---
- hosts: webservers
vars_files:
- vars/main.yml
roles:
- geerlingguy.php-pear
In vars/main.yml
:
php_pear_channels:
- pear.phpunit.de
php_pear_libraries:
- phpunit/PHPUnit
TODO
- Improve the
changed
/failed
conditions for PEAR.
License
MIT / BSD
Author Information
This role was created in 2014 by Jeff Geerling, who also wrote Ansible for DevOps.
Installa
ansible-galaxy install geerlingguy.php-pear
Licenza
mit
Download
3k
Proprietario
Father, author, developer, maker. Sometimes called "an inflammatory enigma". #stl #drupal #ansible #k8s #raspberrypi #crohns