-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbootstrap.yml
49 lines (48 loc) · 1.44 KB
/
bootstrap.yml
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
---
- hosts: localhost
connection: local
vars:
rbenv:
env: user
version: v1.0.0
default_ruby: 2.4.1
rubies:
- version: 2.4.1
pre_tasks:
- name: show environment
debug: msg="USER={{ ansible_env.USER | default(omit)}} HOME={{ ansible_env.HOME }}\nPATH={{ ansible_env.PATH }}"
# - name: Set python interpreter (not python2)
# set_fact: ansible_python_interpreter="/usr/bin/env python"
# - name: Set python interpreter (not python2)
# set_fact: ansible_python_interpreter="$HOME/.pyenv/shims/python"
# - name: pyenv init
# shell: 'eval "$(pyenv init -)"'
- name: get python version
command: python --version
register: python_version
check_mode: no
changed_when: false
- name: show python verion
debug:
msg: "{{ python_version }}"
roles:
- { role: common, tags: common }
- { role: python, tags: python }
- { role: shell, tags: shell }
- { role: scala, tags: scala }
- { role: ruby, tags: ruby }
- { role: emacs, tags: emacs }
- { role: js, tags: js }
# vars:
# nodebrew_install_user: pogin
# - role: geerlingguy.nodejs
# become: true
# npm_config_unsafe_perm: true
# nodejs_npm_global_packages:
# - name: jslint
# - name: node-sass
# - name: purescript
# - name: pulp
# - name: bower
# - role: geerlingguy.mysql
# become: yes