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