Skip to content

ansible-roles/ansible-role-php_pecl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-php_pecl

Install PECL extensions for PHP via pecl or apt.

Requirements

PHP must already be installed on the server.

Usage

- hosts: all
  vars:
    php_pecl_extensions:
      - xdebug
  roles:
    - { role: igor_mukhin.php_pecl }

Also, you can install apt packages that do same things:

- hosts: all
  vars:

  	# Install apt ackages
	php_pecl_apt_packages:
	  - php5-intl
	  - php5-mcrypt

	# And enable it
	php_pecl_modules_enable:
	  - intl
	  - mcrypt

  roles:
    - { role: igor_mukhin.php_pecl }

Extra options:

- hosts: all
  vars:
    php_pecl_extensions:
      - extension: opcache
        type: "zend_extension"
        priority: "05"
      - extension: xdebug
        path: "/usr/lib/php5/20090626+lfs"
        extras:
            xdebug.remote_enable: "on"
            xdebug.remote_host: "localhost"
            xdebug.remote_port: 9000
  roles:
    - { role: igor_mukhin.php_pecl }