Windows_Updates.yaml 408 B

12345678910111213141516171819
  1. ---
  2. - hosts: all
  3. gather_facts: yes
  4. become: yes
  5. tasks:
  6. - name: Install Windows updates
  7. ansible.windows.win_updates:
  8. category_names:
  9. - SecurityUpdates
  10. - CriticalUpdates
  11. - UpdateRollups
  12. - DefinitionUpdates
  13. - Updates
  14. reboot: true
  15. reboot_timeout: 3600
  16. register: win_update
  17. when: apply_win_updates == true