-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.yml
More file actions
58 lines (48 loc) · 1.19 KB
/
setup.yml
File metadata and controls
58 lines (48 loc) · 1.19 KB
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
---
# This playbook installs software and creates symlinks to dotfiles
- hosts: localhost
tasks:
- name: Install emacs
become: yes
package:
name=emacs state=latest
- name: Install tmux
become: yes
package:
name=tmux state=latest
- name: Remove old bashrc
file:
path: "~/.bashrc"
state: absent
- name: Create bashrc symlink
file:
src: "{{playbook_dir}}/.bashrc"
dest: "~/.bashrc"
state: link
- name: Remove old emacs config
file:
path: "~/.emacs.d/init.el"
state: absent
- name: Create emacs config dir
file:
path: "~/.emacs.d"
state: directory
- name: Create emacs config symlink
file:
src: "{{playbook_dir}}/init.el"
dest: "~/.emacs.d/init.el"
state: link
- name: Remove old tmux.conf
file:
state: absent
path: "~/.tmux.conf"
- name: Create tmux.conf symlink
file:
src: "{{playbook_dir}}/.tmux.conf"
dest: "~/.tmux.conf"
state: link
- name: Set git editor
git_config:
name: core.editor
scope: global
value: "emacs -nw"