IBM-Security / isam-ansible-roles

Ansible Custom Modules, Handlers and Tasks for ISAM. Requires "ibmsecurity" python package.
Apache License 2.0
24 stars 43 forks source link

Role search_mapping_rule giving errors #203

Open daniew01 opened 2 years ago

daniew01 commented 2 years ago

Hi

We are having issue working with the above mentioned role. If we call it in its current state with the "{{..}}" it FAILED with "Invalid variable name in 'register' specified" message.

If we change the role and remove the "{{ }}" there is no failures as shown below. I saw the reason for creating the "{{ }}" when reading this article : https://github.com/IBM-Security/isam-ansible-roles/issues/24#issue-241084567, and I am not sure if this is a bug or if I am using the role incorrect and would like some guidance here please.

Are there any other way we can search and use the rule when creating a STS?

Kind Regards DJW

Extract from our yml file :

----------------------------------------------------------------------

Find the ID of the newly created mapping rule

----------------------------------------------------------------------

- role: search_mapping_rule
  search_mapping_rule_name: DJW_MobimoneyPortalAccessManagement

_Role: search_mappingrule:

_Output for : register: "{{ search_mapping_ruleregister }}" TASK [search_mapping_rule : Search for a Mapping Rule] ***** fatal: [nbpisamiddev5]: FAILED! => {"msg": "Invalid variable name in 'register' specified: '{{ search_mapping_rule_register }}'"}

_Output for : register: search_mapping_ruleregister TASK [search_mapping_rule : Search for a Mapping Rule] ***** ok: [nbpisamiddev5] => {"ansible_facts": {"activations": ["wga", "mga", "federation"], "firmware_build": "20210610-0034", "firmware_label": "isva_10.0.2.0_20210610-0034", "model": "Appliance", "product_description": "IBM Security Verify Access", "product_name": "isva", "version": "10.0.2.0"}, "changed": fa........

djorgen-ibm commented 2 years ago

I don't think it should have {{ }} for register.