Yep.   The basics are that you could do:

    - local_action: template src=src.j2 dest=/path/to/local/system

However, this is a bit of a trap, if you are iterating over 500 hosts in a
group, this will run 500 times, and clobber the file 500 times, possibly
from multiple processes at once.

So this is better:

- hosts: webservers
  tasks:
     - blah
     - blah

- hosts: localhost
  tasks:
    - template:

- hosts: webservers
  tasks:
    - more
    - more

Etc.


On Tue, Mar 25, 2014 at 10:35 PM, qiu jiawei <[email protected]> wrote:

> Now,the template module woule build the template file and send to the
> remote host.
> Is it possible for not send to the remote host?
>
> I just want to see the file in local machine.
>
> --
> 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/45f12f53-8c6f-45b2-be8b-a080217af30b%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/45f12f53-8c6f-45b2-be8b-a080217af30b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAEVJ8QPozGXu_C_B63CnM49-AW-eqMkXxzaJh7MORFy2X1R73g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to