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