Giter Site home page Giter Site logo

geerlingguy / ansible-role-php-pear Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 8.0 36 KB

Ansible Role - PHP PEAR library installation

Home Page: https://galaxy.ansible.com/geerlingguy/php-pear/

License: MIT License

ansible role php pear packages install

ansible-role-php-pear's Introduction

Ansible Role: PHP PEAR packages

CI

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

---
- hosts: webservers

  vars_files:
    - vars/main.yml

  roles:
    - geerlingguy.php-pear

Inside vars/main.yml:

php_pear_channels:
  - pear.phpunit.de

php_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, author of Ansible for DevOps.

ansible-role-php-pear's People

Contributors

geerlingguy avatar tahvok avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ansible-role-php-pear's Issues

pear install --alldeps

Some packages have dependencies which pear by default doesn't seem to install. Is there an easy way to add the --alldeps parameter as an option?

Thanks!

Failure when ```pecl install``` prompt user inputs

When installing a PECL extension, pecl install prompt user inputs. This freeze Ansible because there is no way for the user to enter the input.

This can be fixed by running pecl install with
shell: echo "\n\n\n\n\n\n\n\n\n\n" | pecl install {{ item }}.

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.