Skip to content

Commit

Permalink
Merge pull request #34 from idealista/develop
Browse files Browse the repository at this point in the history
Release 3.1.2
  • Loading branch information
emepege authored May 12, 2022
2 parents 2410d36 + b0f9e90 commit c3c5509
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a ch
### Removed
### Changed

## [3.1.2](https://github.com/idealista/php_role/tree/3.1.2) (2022-05-12)
## [Full Changelog](https://github.com/idealista/php_role/compare/3.1.1...3.1.2)
### Added
- *[#32](https://github.com/idealista/php_role/issues/32) Add option arg in extension pecl.

## [3.1.1](https://github.com/idealista/php_role/tree/3.1.1) (2022-03-04)
## [Full Changelog](https://github.com/idealista/php_role/compare/3.1.0...3.1.1)
### Changed
Expand Down
6 changes: 3 additions & 3 deletions tasks/pecl-install-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@
when: php_pecl_library_system_info.stdout | length > 0

- name: PHP | Install {{ item.name }} library
shell: "set -o pipefail && printf '\n' | {{ php_install_dir }}/bin/pecl install {{ item.library }}-{{ item.version }}"
shell: "set -o pipefail && printf {{ item.arg | default('\n') | quote }} | {{ php_install_dir }}/bin/pecl install {{ item.library }}-{{ item.version }}"
args:
executable: /bin/bash
when: php_pecl_library_installed is false

- name: PHP | Upgrade/Downgrade {{ item.name }} library
block:
- name: PHP | Uninstall {{ item.name }} because actual version is {{ php_pecl_library_installed_version }}
shell: "set -o pipefail && printf '\n' | {{ php_install_dir }}/bin/pecl uninstall {{ item.library }}"
shell: "set -o pipefail && printf {{ item.arg | default('\n') | quote }} | {{ php_install_dir }}/bin/pecl uninstall {{ item.library }}"
args:
executable: /bin/bash
- name: PHP | Install {{ item.name }} version {{ item.version }}
shell: "set -o pipefail && printf '\n' | {{ php_install_dir }}/bin/pecl install {{ item.library }}-{{ item.version }}"
shell: "set -o pipefail && printf {{ item.arg | default('\n') | quote }} | {{ php_install_dir }}/bin/pecl install {{ item.library }}-{{ item.version }}"
args:
executable: /bin/bash
when: php_pecl_library_installed is true and php_pecl_library_installed_version != item.version
Expand Down

0 comments on commit c3c5509

Please sign in to comment.