Skip to content

Commit

Permalink
win: install updates and reboot
Browse files Browse the repository at this point in the history
Added update installation and reboot as first step and an extra reboot
after visual studio installation

PR-URL: #576
Reviewed-By: João Reis <[email protected]>
  • Loading branch information
piccoloaiutante authored and joaocgreis committed Jan 7, 2017
1 parent da77057 commit 5cd0f41
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions setup/windows/vcbt2015-ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

tasks:

- name: Download and Install Windows Updates
win_updates:
register: update_result

- name: Reboot machine if necessary
win_reboot:
when: update_result.reboot_required

- name: Create C:\TEMP directory
win_file: path='C:\TEMP' state=directory

Expand All @@ -29,5 +37,8 @@
/Log C:\TEMP\vsbt2015_install_log.txt'
tags: [install, visualstudio]

- name: Reboot machine after Visual C++ Build Tools installation
win_reboot:

- include: ./common-ansible-playbook.yaml
tags: common
11 changes: 11 additions & 0 deletions setup/windows/vs2013-ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

tasks:

- name: Download and Install Windows Updates
win_updates:
register: update_result

- name: Reboot machine if necessary
win_reboot:
when: update_result.reboot_required

- name: Create C:\TEMP directory
win_file: path='C:\TEMP' state=directory

Expand All @@ -17,5 +25,8 @@
/Log C:\TEMP\vs2013_install_log.txt'
tags: [install, visualstudio]

- name: Reboot machine after Visual Studio installation
win_reboot:

- include: ./common-ansible-playbook.yaml
tags: common
11 changes: 11 additions & 0 deletions setup/windows/vs2015-ansible-playbook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@

tasks:

- name: Download and Install Windows Updates
win_updates:
register: update_result

- name: Reboot machine if necessary
win_reboot:
when: update_result.reboot_required

- name: Create C:\TEMP directory
win_file: path='C:\TEMP' state=directory

Expand All @@ -18,5 +26,8 @@
/Log C:\TEMP\vs2015_install_log.txt'
tags: [install, visualstudio]

- name: Reboot machine after Visual Studio installation
win_reboot:

- include: ./common-ansible-playbook.yaml
tags: common

0 comments on commit 5cd0f41

Please sign in to comment.