Hello Guys, Never mind, it's fixed.
Thanks anyway Best Regards, On Mon, Apr 18, 2016 at 12:22 PM, Joseph Djomeda <[email protected]> wrote: > > Hello Gurus, > > > I have been banging my head against the wall about this issue. With the > variable below: > > serviceinstaller_deployment_details: > - { > "service_name": "cardmanagement", > "artifact_location": "{{ > javamicroapp_deployment_details[0].folder_path }}", > "service_artifact_commands": [ > "-Dproperties.path={{ > appcardman_deployment_details[1].dest }}", > "-Dlocale.path={{ > appcardman_deployment_details[0].dest }}", > "-Dlogging.config={{ > appcardman_deployment_details[1].dest }}/logback.xml", > "{{ > javamicroapp_deployment_details[0].artifact_name }}" > ] > } > > > I am trying to iterate over the service_artifact_command using a join(" ") > to produce one line of commands and it keeps complaining about an undefined > error. With or without a single quotes around the square brackets. Kindly > find the full snippet at pastbin.com <http://pastebin.com/YQEBUdiW> . > > I have switched from this to map, using with_dict iterating over > item.value. Map looks like shown below: > > serviceinstaller_deployment_details: > cardman: > service_name: "cardmanagement" > artifact_location: "{{ javamicroapp_deployment_details[0].folder_path > }}" > service_artifact_commands: > - "-Dproperties.path={{ appcardman_deployment_details[1].dest }}" > - "-Dlocale.path={{ appcardman_deployment_details[0].dest }}" > - "-Dlogging.config={{ appcardman_deployment_details[1].dest > }}/logback.xml" > - "{{ javamicroapp_deployment_details[0].artifact_name }}" > > using map I get the error : fatal: [10.40.14.95]: FAILED! => {"failed": > true, "msg": "with_dict expects a dict"} > > Can anyone point out what I am actually doing wrong? I can confirm that > service_name and artifact_location values are used as expected. > > Best Regards, > > > > > -- > > blog: http://www.mycodingpains.com > linkedin: http://gh.linkedin.com/pub/joseph-djomeda/14/5b6/64b > -- blog: http://www.mycodingpains.com linkedin: http://gh.linkedin.com/pub/joseph-djomeda/14/5b6/64b -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAKDXoaK2VT4Je1BF72%2BMnB078GP5CuScke7Afu2e74uwiKvjqA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
