Add obsidian role for macOS and Windows
This commit is contained in:
11
roles/obsidian/tasks/Darwin.yaml
Normal file
11
roles/obsidian/tasks/Darwin.yaml
Normal 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
|
||||
11
roles/obsidian/tasks/Windows.yaml
Normal file
11
roles/obsidian/tasks/Windows.yaml
Normal 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
|
||||
2
roles/obsidian/tasks/main.yaml
Normal file
2
roles/obsidian/tasks/main.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||
Reference in New Issue
Block a user