Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit 882959e

Browse files
committed
Fixes #1963, #1903, #1962 (maybe), #1964: Purge php-common package when installing different PHP version.
1 parent 8881228 commit 882959e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

provisioning/requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
- src: geerlingguy.php-tideways
5757
version: 2.2.0
5858
- src: geerlingguy.php-versions
59-
version: 3.1.0
59+
version: 3.1.1
6060
- src: geerlingguy.php-xdebug
6161
version: 2.5.1
6262
- src: geerlingguy.php-xhprof

provisioning/roles/geerlingguy.php-versions/tasks/setup-Debian.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,12 @@
4949
state: absent
5050
purge: true
5151
force: true
52+
register: php_version_purge
53+
54+
- name: Also purge php-common package if any versions were just purged.
55+
apt:
56+
name: php-common
57+
state: absent
58+
purge: true
59+
force: true
60+
when: php_version_purge.changed | bool

0 commit comments

Comments
 (0)