Skip to content

Commit

Permalink
Updates changed
Browse files Browse the repository at this point in the history
  • Loading branch information
ruzickap committed May 21, 2019
1 parent ac544d2 commit 139043c
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions ansible/win-simple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
dest: "%HOMEDRIVE%\\"
delete_archive: yes

- name: Install windows updates 1
- name: Install windows updates
win_updates:
category_names:
- Application
Expand All @@ -96,19 +96,11 @@
- Tools
- UpdateRollups
- Updates
ignore_errors: true
register: windows_updates1

- name: Windows reboot
win_reboot:
reboot: yes
reboot_timeout: 10000
when: windows_updates1.reboot_required

- name: Install windows updates 2
win_updates:
register: windows_updates2
register: windows_updates

- name: Windows reboot
win_reboot:
reboot_timeout: 10000
when: windows_updates2.reboot_required
when: windows_updates.reboot_required and allow_windows_reboot_during_win_updates

0 comments on commit 139043c

Please sign in to comment.