X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Ftools%2Ftasks%2Fmain.yml;h=e9eb88713ef7ffa6e926fcbdfc6ba8099a6a2ad9;hb=e1c588d325f33930d7a98eec97ec41caf6f3d468;hp=dd52f67d578ca100015b8593025609a055fa1e4b;hpb=23a64c858c206074265bf2b57129854439faf292;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index dd52f67..e9eb887 100644 --- a/roles/tools/tasks/main.yml +++ b/roles/tools/tasks/main.yml @@ -1,10 +1,25 @@ --- - name: Import other tools include_role: - name: "{{ item }}" + name: "{{ tool_import_item }}" loop: - git - gnupg + 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: "{{ item }}" @@ -12,6 +27,12 @@ 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 @@ -83,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