-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from palantirnet/add-pecl-yaml
Add the yaml PHP extension from pecl
- Loading branch information
Showing
5 changed files
with
81 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
- name: Update PECL channel | ||
become: yes | ||
command: pecl channel-update pecl.php.net | ||
|
||
# Ansible has a "pear" module that can manage pecl packages, but it can't | ||
# handle interactive prompts, which this module uses. | ||
- name: Install YAML extension from PECL | ||
become: yes | ||
shell: yes '' | pecl install yaml | ||
args: | ||
creates: /usr/lib/php/*/yaml.so | ||
tags: php5 | ||
|
||
- name: Add YAML extension config | ||
become: yes | ||
template: | ||
src: yaml.ini.j2 | ||
dest: /etc/php/5.6/mods-available/yaml.ini | ||
tags: php5 | ||
|
||
- name: Enable YAML extension | ||
become: true | ||
shell: "/usr/sbin/phpenmod yaml" | ||
tags: php5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extension=yaml.so |