From b067e9f785d129936c3c369f5cfdadfd572032e5 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Wed, 3 Aug 2022 21:58:04 -0400 Subject: [PATCH] refactor(tmux): move config to .config/tmux --- roles/tmux/files/{.tmux.conf => tmux.conf} | 0 roles/tmux/tasks/main.yaml | 11 ++++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) rename roles/tmux/files/{.tmux.conf => tmux.conf} (100%) diff --git a/roles/tmux/files/.tmux.conf b/roles/tmux/files/tmux.conf similarity index 100% rename from roles/tmux/files/.tmux.conf rename to roles/tmux/files/tmux.conf diff --git a/roles/tmux/tasks/main.yaml b/roles/tmux/tasks/main.yaml index cec8765..68ee803 100644 --- a/roles/tmux/tasks/main.yaml +++ b/roles/tmux/tasks/main.yaml @@ -6,8 +6,13 @@ state: latest become: true -- name: Link .tmux.conf file +- name: Directory ansible.builtin.file: - src: "{{ role_path }}/files/.tmux.conf" - dest: "{{ ansible_user_dir }}/.tmux.conf" + path: "{{ ansible_user_dir }}/.config/tmux" + state: directory + +- name: Configuration + ansible.builtin.file: + src: "{{ role_path }}/files/tmux.conf" + dest: "{{ ansible_user_dir }}/.config/tmux/tmux.conf" state: link