community.general.pear (0.1.4) — module

Manage pear/pecl packages

Authors: Jonathan Lestrelin (@jle64) <jonathan.lestrelin@gmail.com>

Install collection

Install with ansible-galaxy collection install community.general:==0.1.4


Add to requirements.yml

  collections:
    - name: community.general
      version: 0.1.4

Description

Manage PHP packages with the pear package manager.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install pear package
  pear:
    name: Net_URL2
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install pecl package
  pear:
    name: pecl/json_post
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Upgrade package
  pear:
    name: Net_URL2
    state: latest
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove packages
  pear:
    name: Net_URL2,pecl/json_post
    state: absent

Inputs

    
name:
    description:
    - Name of the package to install, upgrade, or remove.
    required: true

state:
    choices:
    - present
    - absent
    - latest
    default: present
    description:
    - Desired state of the package.

executable:
    description:
    - Path to the pear executable