diff --git a/setup/windows/vcbt2015-ansible-playbook.yaml b/setup/windows/vcbt2015-ansible-playbook.yaml index 552372c34..768ad1105 100644 --- a/setup/windows/vcbt2015-ansible-playbook.yaml +++ b/setup/windows/vcbt2015-ansible-playbook.yaml @@ -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 @@ -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 diff --git a/setup/windows/vs2013-ansible-playbook.yaml b/setup/windows/vs2013-ansible-playbook.yaml index 7a374472f..e8672e2ee 100644 --- a/setup/windows/vs2013-ansible-playbook.yaml +++ b/setup/windows/vs2013-ansible-playbook.yaml @@ -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 @@ -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 diff --git a/setup/windows/vs2015-ansible-playbook.yaml b/setup/windows/vs2015-ansible-playbook.yaml index 0964e9988..7a444cbb8 100644 --- a/setup/windows/vs2015-ansible-playbook.yaml +++ b/setup/windows/vs2015-ansible-playbook.yaml @@ -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 @@ -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