Thanks Dear

It works..

On Sun, Dec 10, 2017 at 1:11 PM, 'J Hawkesworth' via Ansible Project <
[email protected]> wrote:

> I think you just have a syntax error, and need to put 'hosts' before
> 'tasks'.
>
> I can't test this at the moment, but from memory the syntax would be as
> follows.
>
> # start of playbook
> - name: install notepad plus plus playbook
>   hosts: windows
>   tasks:
>     - name: fetch notepad-plus-plus installer
>       win_get_url:
>         url: https://notepad-plus-plus.org/repository/7.x/7.5.3/npp.7.5.
> 3.Installer.exe
>         dest: "{{ C:\tmp }}npp.7.5.3.Installer.exe"
>
>     - name: install notepad plus plus
>       win_shell: "{{ C:\tmp }}npp.7.5.3.Installer.exe /S"
>
> # end of playbook
>
> Hope this helps,
>
> Jon
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/ansible-project/jnE-wYRvCl8/unsubscribe.
> To unsubscribe from this group and all its topics, 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/01020825-9eb3-462e-aa8e-fa909f978a2f%40googlegroups.
> com.
> 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/CAHF9F3QXFnJACQ5sgDOOZ-A4gO4Ad%3D1Sbqm-Qvn7OGsrmRnK9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to