Re: [ansible-project] ansible ucs intersight error

2023-09-15 Thread Dick Visser
This is again a failed attempt To summarise, a task is failing with an error about malformed JSON, if you run it in a loop. And it succeeds without a loop. So, if you run both of them using -v, this will allow you to compare their invocation (to be precise, the api_body key). You should compar

[ansible-project] AnsibleDB - collect facts and ansible logs

2023-09-15 Thread nasredine bentoumi
Hi, I would like to share a tool that collect ansible facts and send reports to API server using callback plugin, the admins can query the server through API calls or web UI to generate dynamic inventory with facts collected or query ansible log status with diffs. project link : https://github

Re: [ansible-project] ansible ucs intersight error

2023-09-15 Thread Tony Wong
added debug to the loop The full traceback is: File "/var/folders/_f/psbm0b654t9c729qy7r_xl24gn/T/ansible_cisco.intersight.intersight_rest_api_payload_dxt4y__0/ansible_cisco.intersight.intersight_rest_api_payload.zip/ansible_collections/cisco/intersight/plugins/module_utils/intersight.py", l

Re: [ansible-project] ansible ucs intersight error

2023-09-15 Thread Tony Wong
this is from the successful attempt without loop TASK [create_pools : Create UUID Pool1] * ok: [localhost] => {"api_response": {"AccountMoid": "64fb3cbd7564613301d27632", "Ancestors": [], "Assigned": 0, "AssignmentOrder": "default", "Blo

Re: [ansible-project] ansible ucs intersight error

2023-09-15 Thread Dick Visser
This looks like another failed attempt. Compare a failed attempt with a successful attempt using -v and look closely at the payload. Sent from Gmail Mobile On Fri, 15 Sep 2023 at 16:15, Tony Wong wrote: > TASK [create_pools : Create UUID Pool] > ***

Re: [ansible-project] ansible ucs intersight error

2023-09-15 Thread Tony Wong
TASK [create_pools : Create UUID Pool] ** failed: [localhost] (item={'name_of_uuid_pool': 'UUID Pool 1', 'uuid_prefix': '--', 'uuid_size': 100, 'uuid_from': '-0001'}) => {"ansible_loop_var": "item", "changed": f

Re: [ansible-project] Perform Monitoring of MongoDB Replicaset using ansible

2023-09-15 Thread Dick Visser
I would not use ansible for this purpose at all, so I don't think it looks "allrite" :) If you have actual errors/issues with running the playbook then we have something tangible. I wonder why you have not even tested it...? On Thu, 14 Sept 2023 at 21:59, Amit Kulkarni wrote: > Hello Dick, > > T

Re: [ansible-project] ansible ucs intersight error

2023-09-15 Thread Dick Visser
On Fri, 15 Sept 2023 at 00:30, Tony Wong wrote: > The dictionary loop is not working. But when I specify the parameters not > in a dictionary and not in a loop it works. > Run that with -v, and then compare the invocation dict with the one above that fails. -- You received this message because