镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
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