summaryrefslogtreecommitdiff
path: root/pkg/windows/ansible/01_bitmask_deps.yml
blob: d69aa9ab2558046c68d8cda69ebd3c3cc3cb5a1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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