On Wed, 12 Feb 2020 08:51:12 -0800 (PST) Anand Solomon <anand.v.solo...@gmail.com> 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/20200212194850.420f63c1%40gmail.com.
pgpctpM_sOwto.pgp
Description: OpenPGP digital signature