From c3784e0a650e0bf7cb8d7a96bc7cd658184fdf20 Mon Sep 17 00:00:00 2001 From: Sagi Dayan Date: Thu, 28 Mar 2024 10:55:44 +0200 Subject: [PATCH] Tmux fix: plugins are not symlinked but installed. Signed-off-by: Sagi Dayan --- roles/tmux_user/tasks/main.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/roles/tmux_user/tasks/main.yml b/roles/tmux_user/tasks/main.yml index bf81177..2ed26d9 100644 --- a/roles/tmux_user/tasks/main.yml +++ b/roles/tmux_user/tasks/main.yml @@ -4,10 +4,24 @@ name: tmux state: present -- name: Linking up tmux config folder +- name: Verifying tmux config folder file: - src: "{{ playbook_dir }}/files/dotfiles/tmux" - dest: ~/.config/tmux + path: ~/.config/tmux + state: directory + mode: '0755' + +- name: Linking up tmux config + file: + src: "{{ playbook_dir }}/files/dotfiles/tmux/tmux.conf" + dest: ~/.config/tmux/tmux.conf state: link owner: "{{ ansible_user_id }}" group: "{{ ansible_user_id }}" + +- name: Install tmux plugin manager + git: + repo: https://github.com/tmux-plugins/tpm + dest: ~/.config/tmux/plugins/tpm + update: yes + version: master +