From 819870642d1a783208d78156e802c1ad15b73321 Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 2 May 2018 19:39:08 +0200 Subject: [pkg] add ansible scripts for bootstrapping windows env --- pkg/windows/ansible/01_bitmask_deps.yml | 58 +++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pkg/windows/ansible/01_bitmask_deps.yml (limited to 'pkg/windows/ansible/01_bitmask_deps.yml') diff --git a/pkg/windows/ansible/01_bitmask_deps.yml b/pkg/windows/ansible/01_bitmask_deps.yml new file mode 100644 index 00000000..d69aa9ab --- /dev/null +++ b/pkg/windows/ansible/01_bitmask_deps.yml @@ -0,0 +1,58 @@ +######################################################################## +# Playbook to bootstrap a bitmask development environment in +# a windows base image (install system dependencies). +# +# Make sure to follow the instructions in +# https://docs.ansible.com/ansible/devel/user_guide/windows_setup.html +# before running this playbook. +# You also need to install win_git plugin: +# https://github.com/tivrobo/ansible-win_git +######################################################################## + +- hosts: all + gather_facts: false + tasks: + - name: create leap directory + win_file: + path: C:\leap + state: directory + + - name: create ssh folder + win_file: + path: C:\Users\admin\.ssh\ + state: directory + + - name: touch ssh hosts file + win_file: + path: C:\Users\admin\.ssh\known_hosts + state: file + + - name: install dev requirements + win_chocolatey: + name: '{{ item }}' + state: present + with_items: + - git + - poshgit + - wget + - curl + - 7zip + - python2 + - nssm + - nsis + - mingw + - nim + - golang + + - name: install developer tools + win_chocolatey: + name: '{{ item }}' + state: present + with_items: + - vim + - openssh + + - name: upgrade all the packages + win_chocolatey: + name: all + state: latest -- cgit v1.2.3