]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blame - roles/tools/tasks/main.yml
Some fixes
[perso/Immae/Config/Ansible.git] / roles / tools / tasks / main.yml
CommitLineData
397c4fed
IB
1---
2- name: Import other tools
3 include_role:
e1c588d3 4 name: "{{ tool_import_item }}"
397c4fed
IB
5 loop:
6 - git
7 - gnupg
e1c588d3
IB
8 loop_control:
9 loop_var: tool_import_item
587b6dd6
IB
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
23a64c85 23- name: config files
397c4fed 24 copy:
23a64c85
IB
25 src: "{{ item }}"
26 dest: "$XDG_CONFIG_HOME/{{ item }}"
27 loop:
28 - htop/htoprc
29 - mplayer/config
379fbe46
IB
30- name: template config files
31 template:
32 src: "{{ item }}.j2"
33 dest: "$XDG_CONFIG_HOME/{{ item }}"
34 loop:
35 - wgetrc
cf86d448
IB
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
397c4fed 46- name: vim config file
397c4fed
IB
47 copy:
48 src: vimrc
49 dest: $XDG_CONFIG_HOME/vim/vimrc
d03cede6
IB
50 notify:
51 - run PlugInstall
eac82f28 52- meta: flush_handlers
397c4fed
IB
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
eac82f28
IB
62 copy:
63 src: "remind/commands/{{ item }}"
64 dest: "$XDG_CONFIG_HOME/remind/{{ item }}"
65 loop:
66 - work
397c4fed
IB
67- name: remind service file
68 copy:
69 src: remind/remind@.service
70 dest: $XDG_CONFIG_HOME/systemd/user/
71 notify:
72 - reload systemd
86a3ca82
IB
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
eac82f28 79- meta: flush_handlers
86a3ca82
IB
80- name: enable monitor home
81 systemd:
82 state: started
83 scope: user
84 name: monitor_home.service
85 enabled: true
e7c9bf71 86- name: Clone password store
39749dd7 87 tags: ["no_bootstrap"]
e7c9bf71
IB
88 git:
89 dest: "$XDG_DATA_HOME/pass"
90 repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store
78ae9604
IB
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"]
386f9271 98 - ["/org/gnome/evince/default/fullscreen", "false"]
78ae9604
IB
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" ]
b4693a8e
IB
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" ]
587b6dd6
IB
133- name: ssh config dirs
134 file:
135 state: directory
136 path: "$HOME/.ssh"
b4693a8e
IB
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
1a48017d
IB
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