From ad47adabd0634eb88b1741adcf10669b9ce96a3b Mon Sep 17 00:00:00 2001 From: Sonny Bakker Date: Sun, 19 Jan 2025 21:46:42 +0100 Subject: [PATCH] Move tmux configuration file path --- tasks/dotfiles.yml | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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',