From 9bc03546958d811ed9a4c46c0e117ffe2e4e7849 Mon Sep 17 00:00:00 2001 From: adonisgarciac Date: Fri, 17 Jun 2022 12:59:04 +0200 Subject: [PATCH] change lookup for query to get always a list for fact __controller_api_organizations --- .../tasks/organizations_desired_state.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/controller_casc_desired_state/tasks/organizations_desired_state.yml b/roles/controller_casc_desired_state/tasks/organizations_desired_state.yml index 323d52a..cc5e894 100644 --- a/roles/controller_casc_desired_state/tasks/organizations_desired_state.yml +++ b/roles/controller_casc_desired_state/tasks/organizations_desired_state.yml @@ -29,7 +29,7 @@ - "{{ controller_validate_certs }}" - set_fact: - __controller_api_organizations: "{{ lookup('ansible.controller.controller_api', 'organizations', + __controller_api_organizations: "{{ query('ansible.controller.controller_api', 'organizations', host=controller_hostname, username=controller_username, password=controller_password, verify_ssl=controller_validate_certs) }}" - name: "DESIRED STATE: Find the difference of Organizations between what is on the Controller versus curated list."