]>
Commit | Line | Data |
---|---|---|
397c4fed IB |
1 | --- |
2 | - name: Import other tools | |
3 | include_role: | |
4 | name: "{{ item }}" | |
5 | loop: | |
6 | - git | |
7 | - gnupg | |
587b6dd6 IB |
8 | - name: Config dirs |
9 | file: | |
10 | state: directory | |
11 | path: "$XDG_CONFIG_HOME/{{ item }}" | |
12 | loop: | |
13 | - htop | |
14 | - mplayer | |
15 | - psql | |
16 | - vim | |
17 | - tmux | |
18 | - youtube-viewer | |
19 | - remind | |
20 | - systemd/user | |
23a64c85 | 21 | - name: config files |
397c4fed | 22 | copy: |
23a64c85 IB |
23 | src: "{{ item }}" |
24 | dest: "$XDG_CONFIG_HOME/{{ item }}" | |
25 | loop: | |
26 | - htop/htoprc | |
27 | - mplayer/config | |
379fbe46 IB |
28 | - name: template config files |
29 | template: | |
30 | src: "{{ item }}.j2" | |
31 | dest: "$XDG_CONFIG_HOME/{{ item }}" | |
32 | loop: | |
33 | - wgetrc | |
cf86d448 IB |
34 | - name: postgresql |
35 | block: | |
36 | - name: psql config file | |
37 | copy: | |
38 | src: psqlrc | |
39 | dest: $XDG_CONFIG_HOME/psql/psqlrc | |
40 | - name: psql history directory | |
41 | file: | |
42 | path: $XDG_STATE_HOME/psql | |
43 | state: directory | |
397c4fed | 44 | - name: vim config file |
397c4fed IB |
45 | copy: |
46 | src: vimrc | |
47 | dest: $XDG_CONFIG_HOME/vim/vimrc | |
d03cede6 IB |
48 | notify: |
49 | - run PlugInstall | |
eac82f28 | 50 | - meta: flush_handlers |
397c4fed IB |
51 | - name: tmux config file |
52 | template: | |
53 | src: tmux.conf.j2 | |
54 | dest: $XDG_CONFIG_HOME/tmux/tmux.conf | |
55 | - name: youtube viewer config file | |
56 | template: | |
57 | src: youtube-viewer.conf.j2 | |
58 | dest: $XDG_CONFIG_HOME/youtube-viewer/youtube-viewer.conf | |
59 | - name: remind config file | |
eac82f28 IB |
60 | copy: |
61 | src: "remind/commands/{{ item }}" | |
62 | dest: "$XDG_CONFIG_HOME/remind/{{ item }}" | |
63 | loop: | |
64 | - work | |
397c4fed IB |
65 | - name: remind service file |
66 | copy: | |
67 | src: remind/remind@.service | |
68 | dest: $XDG_CONFIG_HOME/systemd/user/ | |
69 | notify: | |
70 | - reload systemd | |
eac82f28 | 71 | - meta: flush_handlers |
e7c9bf71 IB |
72 | - name: Clone password store |
73 | git: | |
74 | dest: "$XDG_DATA_HOME/pass" | |
75 | repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store | |
78ae9604 IB |
76 | - name: dconf configuration |
77 | # check: `dconf dump /` or `dconf-editor` | |
78 | dconf: | |
79 | key: "{{ item.0 }}" | |
80 | value: "{{ item.1 }}" | |
81 | loop: | |
82 | - ["/org/gnome/evince/default/continuous", "true"] | |
83 | - ["/org/gnome/evince/default/fullscreen", "true"] | |
84 | - ["/org/gtk/settings/file-chooser/sort-column", "'name'"] | |
85 | - ["/org/gtk/settings/file-chooser/show-size-column", "true"] | |
86 | - ["/org/gtk/settings/file-chooser/show-hidden", "true"] | |
87 | - ["/org/gtk/settings/file-chooser/location-mode", "'path-bar'"] | |
88 | - ["/org/gtk/settings/file-chooser/sort-directories-first", "false"] | |
89 | - ["/org/gtk/settings/file-chooser/sort-order", "'ascending'"] | |
90 | - ["/org/gtk/settings/file-chooser/startup-mode", "'recent'"] | |
91 | - name: gtk2 configuration | |
92 | ini_file: | |
93 | path: "$XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.ini" | |
94 | section: "Filechooser Settings" | |
95 | option: "{{ item.0 }}" | |
96 | value: "{{ item.1 }}" | |
97 | no_extra_spaces: true | |
98 | loop: | |
99 | - [ "SortColumn", "name" ] | |
100 | - [ "ShowSizeColumn", "true" ] | |
101 | - [ "ShowHidden", "true" ] | |
102 | - [ "LocationMode", "path-bar" ] | |
103 | - [ "SortOrder", "ascending" ] | |
104 | - [ "StartupMode", "recent" ] | |
b4693a8e IB |
105 | - name: pavucontrol configuration |
106 | ini_file: | |
107 | path: "$XDG_CONFIG_HOME/pavucontrol.ini" | |
108 | section: "window" | |
109 | option: "{{ item.0 }}" | |
110 | value: "{{ item.1 }}" | |
111 | no_extra_spaces: true | |
112 | loop: | |
113 | - [ "sinkInputType", "0" ] | |
114 | - [ "sourceOutputType", "0" ] | |
115 | - [ "sinkType", "0" ] | |
116 | - [ "sourceType", "0" ] | |
117 | - [ "showVolumeMeters", "1" ] | |
587b6dd6 IB |
118 | - name: ssh config dirs |
119 | file: | |
120 | state: directory | |
121 | path: "$HOME/.ssh" | |
b4693a8e IB |
122 | - name: ssh files |
123 | copy: | |
124 | src: "ssh/{{ item }}" | |
125 | dest: "$HOME/.ssh/{{ item }}" | |
126 | loop: | |
127 | - known_hosts | |
128 | - rc | |
129 | - name: ssh configuration | |
130 | template: | |
131 | src: ssh_config.j2 | |
132 | dest: $HOME/.ssh/config |