summaryrefslogtreecommitdiff
path: root/pkg/windows/ansible/02_bitmask_virtualenv.yml
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2018-05-02 19:39:08 +0200
committerKali Kaneko <kali@leap.se>2018-05-02 19:39:08 +0200
commit819870642d1a783208d78156e802c1ad15b73321 (patch)
treed0790b0d1de1d4ee1a6ff5dbd80bacdad581dd2c /pkg/windows/ansible/02_bitmask_virtualenv.yml
parent1a3751c2406db693dd08954157376ab329331c3a (diff)
[pkg] add ansible scripts for bootstrapping windows env
Diffstat (limited to 'pkg/windows/ansible/02_bitmask_virtualenv.yml')
-rw-r--r--pkg/windows/ansible/02_bitmask_virtualenv.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/pkg/windows/ansible/02_bitmask_virtualenv.yml b/pkg/windows/ansible/02_bitmask_virtualenv.yml
new file mode 100644
index 00000000..fed36a0c
--- /dev/null
+++ b/pkg/windows/ansible/02_bitmask_virtualenv.yml
@@ -0,0 +1,37 @@
+########################################################################
+# Playbook to bootstrap a bitmask development environment in
+# a windows base image (install virtualenv)
+#
+# 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:
+
+ # XXX this will fail the first time! need to reboot windows so thatthe PATH variable gets updated
+ # https://github.com/ansible/ansible/issues/24333
+
+ - name: git clone bitmask
+ win_git:
+ repo: "https://github.com/leapcode/bitmask-dev.git"
+ dest: "c:\\leap\\bitmask-dev"
+ branch: master
+ update: yes
+ replace_dest: no
+ accept_hostkey: yes
+
+ - name: install virtualenv
+ win_command: pip install -U virtualenvwrapper-win
+
+ - name: create bitmask virtualenv (with vpn deps)
+ win_command: mkvirtualenv.bat bitmask -r c:\leap\bitmask-dev\pkg\requirements-vpn.pip
+ ignore_errors: yes
+
+ - name: install bitmask in devmode
+ win_command: pip install -e c:\leap\bitmask-dev
+ ignore_errors: yes