IBM-Security / isam-ansible-roles

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

search_mapping_rule data not registered properly #174

Closed nka11 closed 4 years ago

nka11 commented 4 years ago

With ISAM 9.0.7 docker deployement.

The data property of the registered object is an empty object {}. the stdout contains the data..

Debug of json output :

{
  "msg": {
    "ansible_facts": {
      "activations": [
        "wga",
        "mga",
        "federation"
      ],
      "firmware_build": "20190612-0509",
      "firmware_label": "isam_9.0.7.0_20190612-0509",
      "model": "Docker",
      "product_description": "IBM Security Access Manager",
      "product_name": "isam",
      "version": "9.0.7.0"
    },
    "changed": false,
    "cmd": "ibmsecurity.isam.aac.mapping_rules.search(isamAppliance=isam_server, force=False, name=\"OIDCRP-ClubMedOIDC-integ\")",
    "data": {},
    "delta": "0:00:04.063759",
    "end": "2019-12-19 09:52:12.046430",
    "failed": false,
    "rc": 0,
    "start": "2019-12-19 09:52:07.982671",
    "status_code": 0,
    "stdout": "[2019-12-19 09:52:05,266] [PID:25 TID:140737354073920] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_response():80] Text: {\"firmware_label\":\"isam_9.0.7.0_20190612-0509\",\"firmware_build\":\"20190612-0509\",\"firmware_version\":\"9.0.7.0\",\"product_description\":\"IBM Security Access Manager\",\"deployment_model\":\"Docker\",\"product_name\":\"isam\"}\n[2019-12-19 09:52:06,686] [PID:25 TID:140737354073920] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_response():80] Text: { \"configured\": true}\n[2019-12-19 09:52:07,981] [PID:25 TID:140737354073920] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_response():80] Text: [{\"name\":\"ISAM Base Appliance\",\"description\":\"IBM Security Access Manager Base Appliance\",\"id\":\"wga\",\"enabled\":\"True\"}, {\"name\":\"ISAM Advanced Access Control\",\"description\":\"IBM Security Access Manager Advanced Access Control\",\"id\":\"mga\",\"enabled\":\"True\"}, {\"name\":\"ISAM Federation\",\"description\":\"IBM Security Access Manager Federation\",\"id\":\"federation\",\"enabled\":\"True\"}]\n[2019-12-19 09:52:12,026] [PID:25 TID:140737354073920] [DEBUG] [ibmsecurity.appliance.ibmappliance] [_process_response():80] Text: [{\"fileName\":\"infomap_username.js\",\"domain\":\"amapp-runtime\",\"name\":\"InfoMapUsername\",\"id\":\"7\",\"category\":\"InfoMap\",\"content\":\"importClass(Packages.com.tivoli.am.fim.trustserver.sts.utilities.IDMappingExtUtils);\\n\\n\\n\\/\\/ Infomap Example username mapping rule.\\n\\/\\/\\n\\/\\/ This example mapping rule makes use of 

CONTENT TRUNCATED BY REPORTER
"

  }
}
nka11 commented 4 years ago

irreleveant, 'grosse fatigue' typo in my playbook

apologies