PR #37 follow-up: Touch up the variable name and purge task.
This commit is contained in:
parent
0adb31ece7
commit
5667df2bdc
|
@ -43,12 +43,9 @@
|
|||
- ansible_distribution == "Debian"
|
||||
tags: ['skip_ansible_lint']
|
||||
|
||||
# PHP package purges.
|
||||
- name: Purge PHP version packages.
|
||||
- name: Purge PHP version packages (besides the currently chosen php_version).
|
||||
apt:
|
||||
name: "{{ __php_versions_debian |
|
||||
reject('search', 'php' ~ php_version) |
|
||||
list }}"
|
||||
name: "{{ php_versions_debian | reject('search', 'php' ~ php_version) | list }}"
|
||||
state: absent
|
||||
purge: true
|
||||
force: true
|
||||
|
|
|
@ -38,7 +38,7 @@ __php_packages:
|
|||
- "php{{ php_version }}-xml"
|
||||
- "php{{ php_version }}-yaml"
|
||||
|
||||
__php_versions_debian:
|
||||
php_versions_debian:
|
||||
- php5.6-common
|
||||
- php7.0-common
|
||||
- php7.1-common
|
||||
|
|
Loading…
Reference in New Issue