Your syntax is incorrect. There is nothing extra needing to be installed. Have a look at the examples from the documentation.
Thanks On Sun, 14 Oct 2018, 13:17 Abhishek Mishra, <[email protected]> wrote: > Is any module or plugin required for win_update ? > Still getting same message. 'win_updates' is not a valid attribute for a > Play > > - name: "Install all security updates with automatic reboots" > > win_updates: > > category_names: > > - SecurityUpdates > > reboot: true > > On Sun, Oct 14, 2018 at 2:37 PM 'Justin Schmitz' via Ansible Project < > [email protected]> wrote: > >> Your name needs to start with >> >> >> - name: "Install all security updates with automatic reboots" >> >> win_updates: >> >> category_names: >> >> - SecurityUpdates >> >> reboot: true >> >> >> On Sun, 14 Oct 2018, 05:53 Abhishek Mishra, <[email protected]> >> wrote: >> >>> 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 >>> <https://groups.google.com/d/msgid/ansible-project/fbdbac99-2f41-49b8-99f9-bd23c9ec1ac6%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> 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/CAGaFLbG2FvM-JvdDGC9ojwzLvovzCtSBXTAhB3i_ptdJAJeEcQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CAGaFLbG2FvM-JvdDGC9ojwzLvovzCtSBXTAhB3i_ptdJAJeEcQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> 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/CAAC6VT09%2BEQ4agJXm%3DryOu-UPBYZFBnU8%2B4pCSOXGM2SSN3YBg%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CAAC6VT09%2BEQ4agJXm%3DryOu-UPBYZFBnU8%2B4pCSOXGM2SSN3YBg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > 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/CAGaFLbHL3nYqQL6mtpnR85q-9UP8wxLQGFFXurgqr3gTUWDe%3Dg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
