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