-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.yml
47 lines (46 loc) · 2.14 KB
/
deploy.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
---
- user: nesaro
vars_files:
- localhost.yml
vars:
dotfiles_repo: "{{ ansible_env.HOME }}/repo/dotfiles/"
hosts: localhost
tasks:
- file: path="{{ ansible_env.HOME }}/repo/" state=directory
- file: path="{{ ansible_env.HOME }}/.pip/" state=directory
- file: path="{{ ansible_env.HOME }}/.xmonad/" state=directory
- file: path="{{ ansible_env.HOME }}/.config/" state=directory
- file: path="{{ ansible_env.HOME }}/.unison/" state=directory
- file: path="{{ ansible_env.HOME }}/.dillo/" state=directory
- file: path="{{ ansible_env.HOME }}/.local/share/konsole/" state=directory
- file: path="{{ ansible_env.HOME }}/.config/lxsession/LXDE/" state=directory
- file: path="{{ ansible_env.HOME }}/bin/" state=directory
- git:
repo: https://github.com/nesaro/dotfiles.git
dest: "{{ dotfiles_repo }}"
version: master
update: no
- file:
src: '{{dotfiles_repo}}/{{ item.src }}'
dest: '{{ ansible_env.HOME }}/{{ item.dest }}'
state: link
with_items:
- { src: 'vim', dest: '.vim' }
- { src: 'pip.conf', dest: '.pip/pip.conf' }
- { src: '.bashrc', dest: '.bashrc' }
- { src: 'redshift.conf', dest: '.config/redshift.conf' }
- { src: 'bin/git-redate', dest: 'bin/git-redate' }
- { src: 'konsole.profile', dest: '/.local/share/konsole/Profile 1.profile' }
- { src: 'dillorc', dest: '/.dillo/dillorc' }
- { src: 'xsessionrc', dest: '/.xsessionrc' }
- { src: 'lxde/desktop.conf', dest: '.config/lxsession/LXDE/desktop.conf'}
- { src: 'lxde/autostart', dest: '.config/lxsession/LXDE/autostart'}
- template:
src: '{{dotfiles_repo}}/{{ item.src }}'
dest: '{{ ansible_env.HOME }}/{{ item.dest }}'
with_items:
- { src: 'xmonad.hs', dest: '.xmonad/xmonad.hs' }
- { src: 'xprofile', dest: '.xsession' }
- { src: 'xprofile', dest: '.xinitrc' }
- { src: 'vimrc', dest: '.vimrc' }
- { src: '.xmobarrc', dest: '.xmobarrc' }