Add obsidian role for macOS and Windows

This commit is contained in:
2022-05-24 20:41:34 +01:00
parent 64ecd88c93
commit d1cfa8c98e
5 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
---
- name: install homebrew package
homebrew:
name: obsidian
state: latest
- name: clone notes repository
git:
repo: git@github.com:kbenzie/notes.git
dest: '{{ansible_env.HOME}}/Documents/Notes'
branch: main

View File

@@ -0,0 +1,11 @@
---
- name: install chocolatey package
win_chocolatey:
name: obsidian
state: latest
- name: clone notes repository
win_git:
repo: git@github.com:kbenzie/notes.git
dest: '{{ansible_env.USERPROFILE}}/Documents/Notes'
branch: main

View File

@@ -0,0 +1,2 @@
---
- include_tasks: '{{ansible_os_family}}.yaml'