diff options
author | Kali Kaneko <kali@leap.se> | 2018-05-02 19:39:08 +0200 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2018-05-02 19:39:08 +0200 |
commit | 819870642d1a783208d78156e802c1ad15b73321 (patch) | |
tree | d0790b0d1de1d4ee1a6ff5dbd80bacdad581dd2c /pkg/windows/ansible/01_bitmask_deps.yml | |
parent | 1a3751c2406db693dd08954157376ab329331c3a (diff) |
[pkg] add ansible scripts for bootstrapping windows env
Diffstat (limited to 'pkg/windows/ansible/01_bitmask_deps.yml')
-rw-r--r-- | pkg/windows/ansible/01_bitmask_deps.yml | 58 |
1 files changed, 58 insertions, 0 deletions
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 |