Add obsidian role for macOS and Windows
This commit is contained in:
parent
64ecd88c93
commit
d1cfa8c98e
@ -27,4 +27,5 @@
|
|||||||
- role: 1password
|
- role: 1password
|
||||||
- role: autohotkey
|
- role: autohotkey
|
||||||
- role: firefox
|
- role: firefox
|
||||||
|
- role: obsidian
|
||||||
- role: windows-terminal
|
- role: windows-terminal
|
7
macOS.yaml
Normal file
7
macOS.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
- import_playbook: unix.yaml
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: obsidian
|
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'
|
Loading…
x
Reference in New Issue
Block a user