-
Notifications
You must be signed in to change notification settings - Fork 0
/
copydots.yml
80 lines (68 loc) · 1.58 KB
/
copydots.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
---
- hosts: localhost
become: false
gather_facts: no
module_defaults:
template:
backup: true
file:
force: yes
tasks:
- name: mkdir .dotfiles
file:
path: ~/.dotfiles
state: directory
- name: gitignore
template:
src: templates/gitignore.j2
dest: ~/.dotfiles/gitignore
- name: symlink gitignore
file:
src: ~/.dotfiles/gitignore
dest: ~/.gitignore
state: link
- name: gitconfig
template:
src: templates/gitconfig.j2
dest: ~/.dotfiles/gitconfig
- name: symlink gitconfig
file:
src: ~/.dotfiles/gitconfig
dest: ~/.gitconfig
state: link
- name: vimrc
template:
src: templates/vimrc.j2
dest: ~/.dotfiles/vimrc
- name: symlink vimrc
file:
src: ~/.dotfiles/vimrc
dest: ~/.vimrc
state: link
- name: tmux
template:
src: templates/tmux.conf.j2
dest: ~/.dotfiles/tmux.conf
- name: symlink tmux
file:
src: ~/.dotfiles/tmux.conf
dest: ~/.tmux.conf
state: link
- name: bash_profile
template:
src: templates/bash_profile.j2
dest: ~/.dotfiles/bash_profile
- name: symlink bashrc
file:
src: ~/.dotfiles/bash_profile
dest: ~/.bashrc
state: link
- name: symlink bash_profile
file:
src: ~/.dotfiles/bash_profile
dest: ~/.bash_profile
state: link
- name: run vim -r to prep the env
command: vim -r
args:
creates: ~/.vim