ERROR! 'win_updates' is not a valid attribute for a Play

My yaml file

-

  name: "Install all security updates with automatic reboots"

  win_updates:

    category_names:

      - SecurityUpdates

    reboot: true



ERROR msg while running


[asadmin@ansible Playbook]$ ansible-playbook winupdate.yaml -i 
windowsinventory.txt

ERROR! 'win_updates' is not a valid attribute for a Play


The error appears to have been in 
'/home/asadmin/test_project/Playbook/winupdate.yaml': line 2, column 3, but 
may

be elsewhere in the file depending on the exact syntax problem.


The offending line appears to be:


-

  name: "Install all security updates with automatic reboots"

  ^ here

-- 
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/fbdbac99-2f41-49b8-99f9-bd23c9ec1ac6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to