summaryrefslogtreecommitdiff
path: root/roles/common-linux/tasks/vim.yml
blob: 84211e889f0927892d48a400ce6b1eb04cdf1c4f (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
- name: mkdir ~root/.vim
  file:
    path: /root/.vim
    state: directory

- name: mkdir ~horus/.vim
  file:
    path: /home/horus/.vim
    state: directory
    owner: horus

- name: change owner of .vim to user
  file:
    #recurse: true
    path: /home/horus/.vim/
    mode: 0744
    owner: horus
    group: horus

- name: git clone vundle for user
  become: true
  become_user: horus
  git:
    repo: https://github.com/VundleVim/Vundle.vim.git
    dest: /home/horus/.vim/bundle/Vundle.vim
    clone: yes
    update: yes

- name: git clone ryanss/vim-hackernews
  become: true
  become_user: horus
  git:
    repo: https://git.iamfabulous.de/vim-hn
    dest: /home/horus/.vim/bundle/vim-hackernews

- name: git clone vundle for root
  git:
    repo: https://github.com/VundleVim/Vundle.vim.git
    dest: /root/.vim/bundle/Vundle.vim

- name: git clone ryanss/vim-hackernews for root
  git:
    repo: https://git.iamfabulous.de/vim-hn
    dest: /root/.vim/bundle/vim-hackernews

- name: copy .vimrc for ~horus
  copy:
    src: .vimrc
    dest: /home/horus/.vimrc
    mode: 0644
    owner: horus

- name: copy .vimrc for ~root
  copy:
    src: .vimrc
    dest: /root/.vimrc
    mode: 0644