diff --git a/CHANGELOG.md b/CHANGELOG.md index d906c96..818fe4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/tasks/pecl-install-library.yml b/tasks/pecl-install-library.yml index 13bcbdf..a669983 100644 --- a/tasks/pecl-install-library.yml +++ b/tasks/pecl-install-library.yml @@ -20,7 +20,7 @@ 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 @@ -28,11 +28,11 @@ - 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