diff --git a/tasks/dotfiles.yml b/tasks/dotfiles.yml index 3cf84f3..92dbf59 100644 --- a/tasks/dotfiles.yml +++ b/tasks/dotfiles.yml @@ -15,10 +15,21 @@ update: yes when: dotfile_ssh_clone.failed -- name: create git configuration directory - file: - path: '{{ xdg_config_dir }}/git' +- name: Create xdg configuration directories + ansible.builtin.file: + path: '{{ item }}' state: directory + mode: '644' + loop: + - '{{ xdg_config_dir }}/git' + - '{{ xdg_config_dir }}/tmux' + +- name: Remove previous dotfiles + ansible.builtin.file: + path: '{{ item }}' + state: absent + loop: + - '{{ ansible_env.HOME }}/.tmux.conf' - name: setup dotfiles file: @@ -41,7 +52,7 @@ } - { src: '{{ ansible_env.HOME }}/dotfiles/.tmux.conf', - dest: '{{ ansible_env.HOME }}/.tmux.conf', + dest: '{{ xdg_config_dir }}/tmux/tmux.conf', } - { src: '{{ ansible_env.HOME }}/dotfiles/.gitignore',