X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=roles%2Ftools%2Ftasks%2Fmain.yml;h=e9eb88713ef7ffa6e926fcbdfc6ba8099a6a2ad9;hb=e1c588d325f33930d7a98eec97ec41caf6f3d468;hp=3fa7d35ffa58eda6049e9cbcd85ad28cc3340f81;hpb=b4693a8e0d5a6b79dbbc3c7d3987dabbab4bbd43;p=perso%2FImmae%2FConfig%2FAnsible.git diff --git a/roles/tools/tasks/main.yml b/roles/tools/tasks/main.yml index 3fa7d35..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 @@ -96,6 +117,10 @@ - [ "sinkType", "0" ] - [ "sourceType", "0" ] - [ "showVolumeMeters", "1" ] +- name: ssh config dirs + file: + state: directory + path: "$HOME/.ssh" - name: ssh files copy: src: "ssh/{{ item }}"