Thank you so much Vlado. It works fine.
On Wednesday, February 12, 2020 at 1:49:13 PM UTC-5, Vladimir Botka wrote: > > On Wed, 12 Feb 2020 08:51:12 -0800 (PST) > Anand Solomon <[email protected] <javascript:>> wrote: > > > - name: Generate Revoke Statement > > local_action: > > copy dest= /home/ansible/query.sql > > content= {% for line in query_result.msg|flatten %} {{ line }} > {% > > endfor %} > > connection: local > > > > I get --> localhost]: FAILED! => {"changed": false, "msg": "dest is > > required"} > > Very probably the problem is the formatting and indentation of the > "shorthand > syntax". Try this > > - name: Generate Revoke Statement > copy: > dest: /home/ansible/query.sql > content: | > {% for line in query_result.msg|flatten %} {{ line }} {% endfor > %} > delegate_to: localhost > connection: local > > HTH, > > -vlado > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/13321f95-962b-42d3-bb87-eeecb88d3af8%40googlegroups.com.
