-
Notifications
You must be signed in to change notification settings - Fork 0
/
provision.yml
52 lines (46 loc) · 1.12 KB
/
provision.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
---
- hosts: all
tasks:
- name: Install SSH keys
authorized_key:
user: root
key: "{{ item }}"
loop: "{{ ssh_keys }}"
- name: Create ansible-pull cron job
cron:
name: "run ansible-pull"
cron_file: "ansible-pull"
user: "root"
minute: "*/15"
job: "/usr/local/bin/ansible-pull provision.yml -U {{ ansible_pull_repo }} -i 'localhost,'"
- name: Install basic packages
package:
name: "{{ item }}"
state: present
loop: "{{ basic_packages }}"
- name: Create vim plugin dir
file:
path: /root/.vim/autoload
state: directory
recurse: yes
owner: root
group: root
- name: Enable vim plugins
uri:
url: https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
dest: /root/.vim/autoload/plug.vim
- name: Install vim plugins
git:
repo: "{{ item }}"
dest: /root/.vim/bundle/nerdtree
update: no
loop:
- https://github.com/scrooloose/nerdtree.git
- name: Setup vimrc
copy:
src: vimrc
dest: /root/.vimrc
owner: root
group: root
mode: "0644"
...