mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-29 11:10:19 +02:00
Removed Pear & Pecl from Ansible scripts
This commit is contained in:
@@ -17,9 +17,4 @@
|
||||
with_items: php.packages
|
||||
when: php.packages is defined
|
||||
|
||||
- name: Install pear
|
||||
sudo: yes
|
||||
apt: pkg=php-pear state=latest
|
||||
|
||||
- include: configure.yml
|
||||
- include: pecl.yml
|
||||
|
@@ -1,26 +0,0 @@
|
||||
- name: Install
|
||||
apt: pkg="php5-dev" state=present
|
||||
when: php.pecl_packages is defined
|
||||
|
||||
- name: Install Package
|
||||
shell: echo "\n\n\n\n\n\n\n\n\n" | pecl install {{ item }}
|
||||
register: pecl_result
|
||||
changed_when: "'already installed' not in pecl_result.stdout"
|
||||
failed_when: "pecl_result.stderr or ('ERROR' in pecl_result.stdout)"
|
||||
with_items: php.pecl_packages
|
||||
when: php.pecl_packages is defined
|
||||
|
||||
- name: Create extension .ini file
|
||||
template: >
|
||||
src="extension.tpl"
|
||||
dest="/etc/php5/mods-available/{{ item }}.ini"
|
||||
owner="root"
|
||||
group="root"
|
||||
mode=0644
|
||||
with_items: php.pecl_packages
|
||||
when: php.pecl_packages is defined
|
||||
|
||||
- name: Enable extension
|
||||
shell: php5enmod {{ item }}
|
||||
with_items: php.pecl_packages
|
||||
when: php.pecl_packages is defined
|
@@ -1,2 +0,0 @@
|
||||
; Configuration for php PECL {{ item }} extension
|
||||
extension={{ item }}.so
|
Reference in New Issue
Block a user