From e279c9b5d14ea11ea07d6cc0c799fde6bfcdb60d Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 15 Nov 2019 19:58:27 +0000 Subject: [PATCH] Add tmux role --- dotfiles.yml | 2 +- .../.config/tmux => roles/tmux/files}/tmux.conf | 0 roles/tmux/tasks/main.yml | 13 +++++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) rename {dotfiles/.config/tmux => roles/tmux/files}/tmux.conf (100%) create mode 100644 roles/tmux/tasks/main.yml diff --git a/dotfiles.yml b/dotfiles.yml index f72a5f4..fc70638 100644 --- a/dotfiles.yml +++ b/dotfiles.yml @@ -14,5 +14,5 @@ - python - readline #- ssh - #- tmux + - tmux - vim diff --git a/dotfiles/.config/tmux/tmux.conf b/roles/tmux/files/tmux.conf similarity index 100% rename from dotfiles/.config/tmux/tmux.conf rename to roles/tmux/files/tmux.conf diff --git a/roles/tmux/tasks/main.yml b/roles/tmux/tasks/main.yml new file mode 100644 index 0000000..92e3311 --- /dev/null +++ b/roles/tmux/tasks/main.yml @@ -0,0 +1,13 @@ +--- +- name: Create the tmux config directory + file: + path: ~/.config/tmux + state: directory + +- name: Deploy tmux config + file: + src: "{{ role_path }}/files/tmux.conf" + dest: ~/.config/tmux/tmux.conf + state: link + force: yes +