From 5b3cf3f7603a336bd3842453c2d6bccd95eee8a6 Mon Sep 17 00:00:00 2001 From: Sergey Gripinskiy Date: Sun, 22 Nov 2020 14:26:08 +0300 Subject: [PATCH] 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. --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 7820086..5c77079 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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