On Tue, 11 Feb 2020 14:59:04 -0800 (PST)
Anand Solomon <anand.v.solo...@gmail.com> wrote:

> Instead of maintaining another template file. Can I embed the content in 
> the playbook itself ?

Sure you can. Put it into the "content". For example

    - local_action:
        copy dest=/scratch/tmp/revoke.sql
        content="{% for line in query_result.msg|flatten %}{{ line }}{%
        endfor %}"

But, why to get rid of the flexibility and modularity?

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/20200212000625.302d820b%40gmail.com.

Attachment: pgpHxegko2PnH.pgp
Description: OpenPGP digital signature

Reply via email to