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