X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Ftools%2Ftasks%2Fmain.yml;h=e9eb88713ef7ffa6e926fcbdfc6ba8099a6a2ad9;hb=e1c588d325f33930d7a98eec97ec41caf6f3d468;hp=745a08fbe5257698179cf1e24ff202719315f873;hpb=e7c9bf715db5255074b6f7554a60de263cc3aa96;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 745a08f..e9eb887 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -1,14 +1,38 @@ --- - name: Import other tools include_role: - name: "{{ item }}" + name: "{{ tool_import_item }}" loop: - git - gnupg -- name: mplayer config file + loop_control: + loop_var: tool_import_item +- name: Config dirs + file: + state: directory + path: "$XDG_CONFIG_HOME/{{ item }}" + loop: + - htop + - mplayer + - psql + - vim + - tmux + - youtube-viewer + - remind + - systemd/user +- 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 +49,7 @@ dest: $XDG_CONFIG_HOME/vim/vimrc notify: - run PlugInstall +- meta: flush_handlers - name: tmux config file template: src: tmux.conf.j2 @@ -34,18 +59,18 @@ 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 +- meta: flush_handlers - name: Clone password store git: dest: "$XDG_DATA_HOME/pass" @@ -79,4 +104,31 @@ - [ "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 config dirs + file: + state: directory + path: "$HOME/.ssh" +- 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