-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaybook.yml
43 lines (38 loc) · 1.05 KB
/
playbook.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
---
- hosts: localhost
connection: local
tasks:
- import_tasks: install-zsh.yml
- import_tasks: install-packages.yml
- import_tasks: install-ruby.yml
- import_tasks: install-mac-settings.yml
- import_tasks: install-ssh-settings.yml
- name: set config list
set_fact:
list:
- .bundle/config
- .oh-my-zsh/themes/gruz0.zsh-theme
- .config/nvim/coc-settings.json
- .config/nvim/init.vim
- .config/solargraph/config.yml
- .ssh
- .ansible.cfg
- .bash_profile
- .ctags
- .editorconfig
- .eslintrc
- .gemrc
- .gitconfig
- .gitignore_global
- .tmux.conf
- .zshrc
- name: create config dirs
file: path='~/{{ item | dirname }}' state=directory
with_items: '{{ list }}'
- name: create config links
file:
src: '{{ playbook_dir }}/assets/{{ item }}'
dest: '~/{{ item }}'
state: link
force: yes
with_items: '{{ list }}'