mirror of
https://github.com/geerlingguy/ansible-role-php-versions.git
synced 2024-11-28 11:15:20 +01:00
fix: require user confirmation to delete other php version in Debian
This commit is contained in:
parent
39c7aa26f8
commit
5f50517d85
@ -4,3 +4,7 @@ php_version: '8.3'
|
|||||||
|
|
||||||
# For Debian OSes only.
|
# For Debian OSes only.
|
||||||
php_versions_install_recommends: false
|
php_versions_install_recommends: false
|
||||||
|
|
||||||
|
# Purge others version need user confirmation, default to false (no delete)
|
||||||
|
# if auto delete, causing break in the existing service which depend to other version
|
||||||
|
php_purge_other_version: false
|
||||||
|
@ -49,6 +49,7 @@
|
|||||||
purge: true
|
purge: true
|
||||||
force: true
|
force: true
|
||||||
register: php_version_purge
|
register: php_version_purge
|
||||||
|
when: php_purge_other_version
|
||||||
|
|
||||||
- name: Also purge php-common package if any versions were just purged.
|
- name: Also purge php-common package if any versions were just purged.
|
||||||
apt:
|
apt:
|
||||||
@ -56,4 +57,4 @@
|
|||||||
state: absent
|
state: absent
|
||||||
purge: true
|
purge: true
|
||||||
force: true
|
force: true
|
||||||
when: php_version_purge.changed | bool
|
when: php_version_purge.changed | bool and php_purge_other_version
|
||||||
|
Loading…
Reference in New Issue
Block a user