Skip to content

[WIP] win: add a "VS2017 Build Tools" playbook #708

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions setup/windows/vcbt2017-ansible-playbook.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
- hosts: node-windows

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

- name: VCBT2017 | Download .NET Framework 4.6.1 Setup
win_get_url:
url: 'http://go.microsoft.com/fwlink/?LinkId=671743'
dest: 'C:\TEMP\netfw.exe'
tags: [download, visualstudio]

- name: VCBT2017 | Install .NET Framework 4.6.1
raw: 'C:\TEMP\netfw.exe /q /norestart /log C:\TEMP\netfw_install_log.txt'
tags: [install, visualstudio]

- name: VCBT2017 | Download Visual C++ Build Tools 2017 Setup
win_get_url:
url: 'https://aka.ms/vs/15/release/vs_community.exe'
dest: 'C:\TEMP\vs_community.exe'
tags: [download, visualstudio]

- name: VCBT2017 | Install Visual C++ Build Tools 2017
raw: 'set TEMP=C:\TEMP;C:\TEMP\vs_BuildTools.exe --installPath c:\temp\bt2017 --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended -q --wait'
tags: [install, visualstudio]

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

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