-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphicmode.yml
45 lines (41 loc) · 1.22 KB
/
graphicmode.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
---
- hosts: all
gather_facts: true
tasks:
- name: Directories
file:
path: "{{ item }}"
state: directory
mode: 0700
force: true
with_items:
- ~/.config/i3
- ~/.config/i3status
- ~/.local/share/fonts
when: ansible_os_family != "Darwin"
- name: shell configs
file:
src: "{{ item.src }}"
dest: "{{ item.dst }}"
state: link
force: true
with_items:
- {src: "{{ playbook_dir }}/files/Xresources.symlink", dst: "~/.Xresources"}
- {src: "{{ playbook_dir }}/files/osx.symlink", dst: "~/.osx"}
- {src: "{{ playbook_dir }}/files/i3config.symlink", dst: "~/.config/i3/config"}
- name: Fonts for linux
unarchive:
src: ./fonts/furacode.tgz
dest: ~/.local/share/fonts/
creates: "~/.local/share/fonts/Fura Code Bold Nerd Font Complete.otf"
when: ansible_os_family != "Darwin"
notify: fontcache
- name: Fonts for OSX
unarchive:
src: ./fonts/furacode.tgz
dest: ~/Library/Fonts/
when: ansible_os_family == "Darwin"
handlers:
- name: fontcache
shell: fc-cache -f ~/.local/share/fonts
when: ansible_os_family != "Darwin"