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
- name: "Install all security updates with automatic reboots"
win_updates:
category_names:
- SecurityUpdates
reboot: true
--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
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.
- name: "Install all security updates with automatic reboots"
win_updates:
category_names:
- SecurityUpdates
reboot: true
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAGaFLbG2FvM-JvdDGC9ojwzLvovzCtSBXTAhB3i_ptdJAJeEcQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAAC6VT09%2BEQ4agJXm%3DryOu-UPBYZFBnU8%2B4pCSOXGM2SSN3YBg%40mail.gmail.com.