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 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/01020825-9eb3-462e-aa8e-fa909f978a2f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.