Install vimwikis
This commit is contained in:
parent
f921b9ee1e
commit
fc2de30760
3 changed files with 37 additions and 0 deletions
|
@ -13,4 +13,16 @@
|
||||||
accept_hostkey: yes
|
accept_hostkey: yes
|
||||||
update: no
|
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"
|
||||||
|
|
24
roles/vimwiki/tasks/main.yaml
Normal file
24
roles/vimwiki/tasks/main.yaml
Normal file
|
@ -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
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
- tmux
|
- tmux
|
||||||
- zsh
|
- zsh
|
||||||
- neovim
|
- neovim
|
||||||
|
- vimwiki
|
||||||
- tools
|
- tools
|
||||||
- dev-machine
|
- dev-machine
|
||||||
- pinentry-wsl
|
- pinentry-wsl
|
||||||
|
|
Loading…
Reference in a new issue