X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Ftools%2Ftasks%2Fmain.yml;h=9c540d5f33df708418041cbfe00bdccfefe9fae1;hb=379fbe46b77c84a419a0b438b088e65b76406c73;hp=56298cbed129f2acb60174245e333c9f1458c6b8;hpb=cf86d448f96ede049c04d8165931f92a82f35956;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 56298cb..9c540d5 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -5,10 +5,19 @@ loop: - git - gnupg -- name: mplayer config file +- name: config files copy: - src: mplayer - dest: $XDG_CONFIG_HOME/mplayer/config + src: "{{ item }}" + dest: "$XDG_CONFIG_HOME/{{ item }}" + loop: + - htop/htoprc + - mplayer/config +- name: template config files + template: + src: "{{ item }}.j2" + dest: "$XDG_CONFIG_HOME/{{ item }}" + loop: + - wgetrc - name: postgresql block: - name: psql config file @@ -25,6 +34,7 @@ dest: $XDG_CONFIG_HOME/vim/vimrc notify: - run PlugInstall +- meta: flush_handlers - name: tmux config file template: src: tmux.conf.j2 @@ -34,23 +44,22 @@ src: youtube-viewer.conf.j2 dest: $XDG_CONFIG_HOME/youtube-viewer/youtube-viewer.conf - name: remind config file - synchronize: - recursive: yes - archive: no - checksum: yes - src: remind/commands/ - dest: /$XDG_CONFIG_HOME/remind/ + 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 -- name: Link password store - file: - path: "$XDG_DATA_HOME/pass" - src: "$XDG_CONFIG_HOME/ansible/password_store" - state: link +- 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: @@ -80,4 +89,27 @@ - [ "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