Skip to content

Windows Automation Workshop Exercise 7 Section 2 #2316

@ramrexx

Description

@ramrexx

Area

Ansible Windows Automation Workshop

Proposed Changes

In the following section, the documentation incorrectly sets up the category_names and reboot parameters.

Section 2 – Write Your Playbook
Edit site.yml and add the following:


  • hosts: windows
    name: This is my Windows patching playbook
    tasks:
    • name: Install Windows Updates
      win_updates:
      category_names: ""
      reboot: ""

Instead it should be this instead as noted here: https://github.com/ansible/workshops/tree/devel/exercises/ansible_windows/7-win-patch#section-2--write-your-playbook


  • hosts: windows
    name: This is my Windows patching playbook
    tasks:
    • name: Install Windows Updates
      win_updates:
      category_names: "{{ categories | default(omit) }}"
      reboot: "{{ reboot_server | default(true) }}"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions