Now a couple of quick examples.
We're diving right in and taking a look at playbook syntax
that's using the YAML data representation format.
Within this playbook,
we have a task that creates a startup script file on the target host.
Now, the name is the logical name of the task,
and what I have highlighted is an invocation to one of
Ansible's built‑in win_ modules.
And the trick is to become familiar with the most popular
modules and read the docs and look at the examples and
then start using them yourself.
Each one will have its own key values that are expected.
In this case, if we're doing a touch state,
that means create this file if it doesn't exist.
Another example down below in this sample playbook,
we're adding a registry for the startup script.
And here we're using the built‑in win_regedit module
in which you can provide a path, a name,
a data, and a data type to manipulate Windows registry values.
You see?