[ansible-devel] PowerShell script in windows host

2021-08-25 Thread Sakshi Jain
- debug: var=result.stdout TASK [Run powershell script] *** fatal: [172.31.4.147]: FAILED! => {"changed": true, "msg": "non-zero return code"

[ansible-devel] Check existence of a value from dictionary with list

2021-08-25 Thread rijeshpp
Hello all, I have to implement a logic where I need to create a few secrets in kubernetes cluster using ansible. The login I am trying to implement is to get registered all the secrets in a namepsapce first, then create the secrets if that not present. I specifically want to know how I can vali

[ansible-devel] Re: Best way to format complex findings for end-user consumption?

2021-08-25 Thread Johnnie Green
Not sure if markdown will work as I hope in the post (will post images if not) but thought a brief illustration may prove helpful on the default formatting achieved via a task using the 'debug' module (*and how difficult it is to relate to*) in comparison to if the desired limited formatting we

Re: [ansible-devel] Re: Best way to format complex findings for end-user consumption?

2021-08-25 Thread Richard Megginson
Have you tried the `to_nice_json` filter? https://docs.ansible.com/ansible/latest/user_guide/playbooks_filters.html#formatting-data-yaml-and-json On Wed, Aug 25, 2021 at 8:12 AM Johnnie Green wrote: > Not sure if markdown will work as I hope in the post (will post images if > not) but thought a