]> git.immae.eu Git - perso/Immae/Config/Ansible.git/blame - roles/tools/tasks/main.yml
Fix missing directories for gnupg overrides
[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
IB
86- name: Clone password store
87 git:
88 dest: "$XDG_DATA_HOME/pass"
89 repo: gitolite@git.immae.eu:perso/Immae/Prive/Password_store
78ae9604
IB
90- name: dconf configuration
91 # check: `dconf dump /` or `dconf-editor`
92 dconf:
93 key: "{{ item.0 }}"
94 value: "{{ item.1 }}"
95 loop:
96 - ["/org/gnome/evince/default/continuous", "true"]
97 - ["/org/gnome/evince/default/fullscreen", "true"]
98 - ["/org/gtk/settings/file-chooser/sort-column", "'name'"]
99 - ["/org/gtk/settings/file-chooser/show-size-column", "true"]
100 - ["/org/gtk/settings/file-chooser/show-hidden", "true"]
101 - ["/org/gtk/settings/file-chooser/location-mode", "'path-bar'"]
102 - ["/org/gtk/settings/file-chooser/sort-directories-first", "false"]
103 - ["/org/gtk/settings/file-chooser/sort-order", "'ascending'"]
104 - ["/org/gtk/settings/file-chooser/startup-mode", "'recent'"]
105- name: gtk2 configuration
106 ini_file:
107 path: "$XDG_CONFIG_HOME/gtk-2.0/gtkfilechooser.ini"
108 section: "Filechooser Settings"
109 option: "{{ item.0 }}"
110 value: "{{ item.1 }}"
111 no_extra_spaces: true
112 loop:
113 - [ "SortColumn", "name" ]
114 - [ "ShowSizeColumn", "true" ]
115 - [ "ShowHidden", "true" ]
116 - [ "LocationMode", "path-bar" ]
117 - [ "SortOrder", "ascending" ]
118 - [ "StartupMode", "recent" ]
b4693a8e
IB
119- name: pavucontrol configuration
120 ini_file:
121 path: "$XDG_CONFIG_HOME/pavucontrol.ini"
122 section: "window"
123 option: "{{ item.0 }}"
124 value: "{{ item.1 }}"
125 no_extra_spaces: true
126 loop:
127 - [ "sinkInputType", "0" ]
128 - [ "sourceOutputType", "0" ]
129 - [ "sinkType", "0" ]
130 - [ "sourceType", "0" ]
131 - [ "showVolumeMeters", "1" ]
587b6dd6
IB
132- name: ssh config dirs
133 file:
134 state: directory
135 path: "$HOME/.ssh"
b4693a8e
IB
136- name: ssh files
137 copy:
138 src: "ssh/{{ item }}"
139 dest: "$HOME/.ssh/{{ item }}"
140 loop:
141 - known_hosts
142 - rc
143- name: ssh configuration
144 template:
145 src: ssh_config.j2
146 dest: $HOME/.ssh/config
1a48017d
IB
147- name: bin dir
148 file:
149 state: directory
150 path: "$HOME/.local/bin"
151- name: add gio unwrapper
152 copy:
153 src: gio_unwrapper.sh
154 dest: $HOME/.local/bin/gio_unwrapper
155 mode: 0755