Skip to content

Commit

Permalink
fix(main): handle pecl channel-update as separate task else incorrect…
Browse files Browse the repository at this point in the history
…ly seen as failed
  • Loading branch information
juju4 committed Nov 11, 2024
1 parent 61595f3 commit 38a0200
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,18 @@
- name: Import composer
ansible.builtin.import_tasks: composer.yml

- name: PECL channel-update
ansible.builtin.command:
cmd: pecl channel-update pecl.php.net
register: pecl_update
changed_when: "'Update of Channel' in pecl_update.sdtout"
when:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_major_version | int >= 24

- name: Install PECL libraries.
ansible.builtin.command: "{{ item }}"
loop:
- pecl channel-update pecl.php.net
- pecl install brotli
- pecl install simdjson
- pecl install zstd
Expand Down

0 comments on commit 38a0200

Please sign in to comment.