From c83b93a64fbb66f2e79fa31d8486027adabc0118 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 11 Oct 2020 20:33:50 +0200 Subject: [PATCH] Create configuration directories for nvim and tmux Signed-off-by: Matej Focko --- playbooks/roles/shell/tasks/nvim.yml | 10 ++++++---- playbooks/roles/shell/tasks/tmux.yml | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/playbooks/roles/shell/tasks/nvim.yml b/playbooks/roles/shell/tasks/nvim.yml index 730a39f..8cd285d 100644 --- a/playbooks/roles/shell/tasks/nvim.yml +++ b/playbooks/roles/shell/tasks/nvim.yml @@ -1,8 +1,10 @@ --- - name: Create init.vim - template: - src: templates/init.vim.j2 - dest: ~/.config/nvim/init.vim + block: + - shell: mkdir -p ~/.config/nvim + - template: + src: templates/init.vim.j2 + dest: ~/.config/nvim/init.vim - name: Install vim-plug - shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' \ No newline at end of file + shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' diff --git a/playbooks/roles/shell/tasks/tmux.yml b/playbooks/roles/shell/tasks/tmux.yml index b4408cf..c979a03 100644 --- a/playbooks/roles/shell/tasks/tmux.yml +++ b/playbooks/roles/shell/tasks/tmux.yml @@ -1,4 +1,7 @@ --- +- name: Create .tmux + shell: mkdir -p ~/.tmux + - name: Clone tpm git: repo: https://github.com/tmux-plugins/tpm @@ -12,4 +15,4 @@ - name: Create tmux status configuration template: src: templates/tmux_status.conf.j2 - dest: ~/.tmux/status.conf \ No newline at end of file + dest: ~/.tmux/status.conf