From fc2de30760b539ae32c8bd59caf36517803bb5ed Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Thu, 12 Nov 2020 13:24:31 +0100 Subject: [PATCH] Install vimwikis --- roles/dotfiles/tasks/main.yaml | 12 ++++++++++++ roles/vimwiki/tasks/main.yaml | 24 ++++++++++++++++++++++++ wsl-debian.yaml | 1 + 3 files changed, 37 insertions(+) create mode 100644 roles/vimwiki/tasks/main.yaml diff --git a/roles/dotfiles/tasks/main.yaml b/roles/dotfiles/tasks/main.yaml index ba60d84..530bdfb 100644 --- a/roles/dotfiles/tasks/main.yaml +++ b/roles/dotfiles/tasks/main.yaml @@ -13,4 +13,16 @@ accept_hostkey: yes update: no +- name: ensure user/bin exists + become_user: "{{ account.name }}" + file: + path: "/home/{{ account.name }}/bin" + state: directory + mode: "0744" +- name: install bin scripts + become_user: "{{ account.name }}" + shell: + chdir: "{{ dotfiles }}/bin" + cmd: ./install.sh + creates: "{{ account.home }}/bin/wiki-sync" diff --git a/roles/vimwiki/tasks/main.yaml b/roles/vimwiki/tasks/main.yaml new file mode 100644 index 0000000..98de764 --- /dev/null +++ b/roles/vimwiki/tasks/main.yaml @@ -0,0 +1,24 @@ +--- +- name: ensure directory exists + become_user: "{{ account.name }}" + file: + path: "{{ account.home }}/vimwiki/" + state: directory + mode: "0700" + +- name: clone personal wiki + become_user: "{{ account.name }}" + git: + repo: ssh://git@git.molez.org:222/mandlm/vimwiki.git + dest: "{{ account.home }}/vimwiki/personal" + accept_hostkey: yes + update: no + +- name: clone swp wiki + become_user: "{{ account.name }}" + git: + repo: git@gitlab.com:mandlm/vimwiki.git + dest: "{{ account.home }}/vimwiki/swp" + accept_hostkey: yes + update: no + diff --git a/wsl-debian.yaml b/wsl-debian.yaml index 5bcdca6..646ed22 100644 --- a/wsl-debian.yaml +++ b/wsl-debian.yaml @@ -15,6 +15,7 @@ - tmux - zsh - neovim + - vimwiki - tools - dev-machine - pinentry-wsl