forked from mokevnin/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
playbook.yml
82 lines (72 loc) · 1.83 KB
/
playbook.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
---
- hosts: all
vars:
dotfiles: /var/tmp/dotfiles
pre_tasks:
- apt: name={{ item }} state=latest
become: yes
with_items:
# - ack
- ack-grep
- exuberant-ctags
- vim
- git
- curl
# - python-setuptools
- python-apt
- python-pycurl
- python-dev
- python-setuptools
- tmux
- haskell-platform
# - ocaml-nox
# - opam
tasks:
- easy_install: name=pip
become: yes
- pip: name={{ item }} state=latest
become: yes
with_items:
- pylint
- ansible-lint
#- bashate
tags: python
- file: src={{ dotfiles }}/{{ item }} dest=~/.{{ item }} state=link
# become: yes
# become_user: "{{ ansible_user_id }}"
with_items:
- vimrc
- gitconfig
- git:
repo: https://github.com/gmarik/Vundle.vim.git
dest: ~/.vim/bundle/Vundle.vim
version: v0.10.2
# become: yes
# become_user: "{{ ansible_user_id }}"
# - shell: vim +PluginInstall +qall
- shell: cabal update
- shell: cabal install ghc-mod
- gem: name={{ item }} state=latest user_install=no
sudo: yes
with_items:
- haml-lint
- ruby-lint
- sqlint
- rubocop
- sass
tags: [ruby]
- npm: name={{ item }} global=yes state=latest
sudo: yes
with_items:
- bower
- js-yaml
- eslint # NOTE: http://eslint.org/docs/configuring/ for enabling jsx
- babel-eslint
- eslint-plugin-react
- jsonlint
- grunt-cli
- flow-bin
# - lineinfile: dest="~/.bash_profile" state=present create=yes
# line="set -o vi"
- lineinfile: dest="~/.bash_profile" state=present create=yes
line="export PS1='$(__git_ps1) \w\$ '"