Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geerlingguy/ansible-role-php-pear
Ansible Role - PHP PEAR library installation
https://github.com/geerlingguy/ansible-role-php-pear
ansible install packages pear php role
Last synced: 2 months ago
JSON representation
Ansible Role - PHP PEAR library installation
- Host: GitHub
- URL: https://github.com/geerlingguy/ansible-role-php-pear
- Owner: geerlingguy
- License: mit
- Created: 2014-03-04T04:37:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-07-16T19:22:58.000Z (6 months ago)
- Last Synced: 2024-10-10T04:06:31.943Z (3 months ago)
- Topics: ansible, install, packages, pear, php, role
- Homepage: https://galaxy.ansible.com/geerlingguy/php-pear/
- Size: 37.1 KB
- Stars: 14
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: PHP PEAR packages
[![CI](https://github.com/geerlingguy/ansible-role-php-pear/workflows/CI/badge.svg?event=push)](https://github.com/geerlingguy/ansible-role-php-pear/actions?query=workflow%3ACI)
Installs PHP PEAR packages on servers with PHP and `php-pear` already installed.
## Requirements
PHP and `php-pear` (or the equivalent) must already be installed on the server, so the `pear` command can be run.
## Role Variables
Available variables are listed below, along with default values (see `defaults/main.yml`):
php_pear_channels:
- pear.phing.info(Defaults to empty list (`[]`).) The PEAR channels that should be discovered so pear libraries can be installed. By default, PEAR is not configured to autodiscover channels for libraries you would like installed, so you need to explicitly list all the libraries' channels here.
php_pear_libraries:
- phing(Defaults to empty list (`[]`).) The libraries/extensions you would like installed via PEAR.
## Dependencies
- geerlingguy.php
## Example Playbook
```yaml
---
- hosts: webserversvars_files:
- vars/main.ymlroles:
- geerlingguy.php-pear
```*Inside `vars/main.yml`*:
```yaml
php_pear_channels:
- pear.phpunit.dephp_pear_libraries:
- phpunit/PHPUnit
```## TODO
- Continue refining the `changed`/`failed` conditions for PEAR. Yuck.
## License
MIT / BSD
## Author Information
This role was created in 2014 by [Jeff Geerling](https://www.jeffgeerling.com/), author of [Ansible for DevOps](https://www.ansiblefordevops.com/).