fix: Unusable php_packages variable

It was impossible to set php_packages variable from a playbook when
using geerlingguy.php with geerlingguy.php-versions roles.
This commit is contained in:
Sergey Gripinskiy 2020-11-22 14:26:08 +03:00
parent aa60a3d85a
commit 5b3cf3f760
No known key found for this signature in database
GPG Key ID: 1E78FEB6C4E420D7
1 changed files with 2 additions and 2 deletions

View File

@ -8,8 +8,8 @@
- name: Define PHP variables.
set_fact: "{{ item.key }}={{ lookup('vars', item.value) }}"
when:
- hostvars[inventory_hostname][item.key] is undefined
- hostvars[inventory_hostname][item.value] is defined
- vars[item.key] is undefined
- vars[item.value] is defined
with_dict:
php_conf_paths: __php_conf_paths
php_extension_conf_paths: __php_extension_conf_paths