Skip to content

Commit 7328579

Browse files
committed
Disable install_recommends for php packages
php8.1-cli is being installed due to another package recommending it. Right now this breaks WordPress installation due to WP-CLI being incompatible. However, 8.1 shouldn't be installed anyway when the `php_version` is set to `8.0`. This fixes the root cause by setting `install_recommends: no` which disables the feature in `apt`. More background: https://github.com/oerdnj/deb.sury.org/wiki/Frequently-Asked-Questions#why-is-phpdefaultversion-cli-always-installed and oerdnj/deb.sury.org#1711
1 parent 1dca397 commit 7328579

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
### HEAD
2+
* Fix #1354 - Disable `install_recommends` for php packages ([#1355](https://github.com/roots/trellis/pull/1355))
23
* Update default ssh key paths (include ed25519 keys) ([#1348](https://github.com/roots/trellis/pull/1348))
34
* Use trellis-cli for Vagrant galaxy install when available ([#1349](https://github.com/roots/trellis/pull/1349))
45
* Fix #970 - Improve git clone failure error ([#1351](https://github.com/roots/trellis/pull/1351))

roles/php/tasks/main.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
name: "{{ item.key }}"
1010
state: "{{ item.value }}"
1111
cache_valid_time: "{{ apt_cache_valid_time }}"
12+
install_recommends: no
1213
with_dict: "{{ php_extensions }}"
1314

1415
- name: Start php fpm service

0 commit comments

Comments
 (0)