From 234968c51bce9e90645862555d525dd17c6f6ea3 Mon Sep 17 00:00:00 2001 From: mohinz-ibm <61587107+mohinz-ibm@users.noreply.github.com> Date: Fri, 22 Mar 2024 23:58:08 +0100 Subject: [PATCH] Update main.yml For some reasons, always getting "skip_reason": "Conditional result was False". I was able to make it work only by changing the "when: item.name == name" by loop_control: label: "{{ item.name }}" --- roles/aac/configure_api_protection_definitions/tasks/main.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/aac/configure_api_protection_definitions/tasks/main.yml b/roles/aac/configure_api_protection_definitions/tasks/main.yml index f2be6941..8c392496 100644 --- a/roles/aac/configure_api_protection_definitions/tasks/main.yml +++ b/roles/aac/configure_api_protection_definitions/tasks/main.yml @@ -2,6 +2,7 @@ # main task to configure api protection definition # Example: +# api_protection: # definitions: # - name: oauth-provider # description: API protection for OAuth service provider @@ -16,5 +17,6 @@ action: ibmsecurity.isam.aac.api_protection.definitions.set isamapi: "{{ item | ibm.isam.exclude('clients') | ibm.isam.exclude('mapping_rules') }}" with_items: "{{ api_protection.definitions | default([]) }}" - when: item.name == name + loop_control: + label: "{{ item.name }}" notify: Commit Changes