Re: [ansible-devel] Help needed on URI Module POST

2022-12-14 Thread Mohammed Reehan
Hi Didier, thanks for your email and quick response. Indeed it is working as charm for me. Thanks Reehan On Thu, Dec 15, 2022 at 2:55 AM Didier BOURRIAUD wrote: > Hi Mohammed, > > I think if you only write this, it works : > - contentDetails: "{{ input }}" > > The Jinja will interpretes the v

Re: [ansible-devel] Help needed on URI Module POST

2022-12-14 Thread Didier BOURRIAUD
Hi Mohammed, I think if you only write this, it works : - contentDetails: "{{ input }}" The Jinja will interpretes the variable "input", and it's an array. -- [image: Kosmos] Didier BOURRIAUD *Expert Technique* Tél. : +33 (0) 6.84.18.76.21 - 8 rue Kervégan 4

[ansible-devel] Help needed on URI Module POST

2022-12-14 Thread Mohammed Reehan
Hi Ansible Experts, I am trying to use Ansible URI as below to post the content where my input is a variable of type Array in the body. I am trying to pass the input as an Array into the body under Contentdetials which is an array. however, it is ending up reading as a string. any idea how can I a