Add obsidian role for macOS and Windows

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

View File

@ -27,4 +27,5 @@
- role: 1password
- role: autohotkey
- role: firefox
- role: obsidian
- role: windows-terminal

7
macOS.yaml Normal file
View File

@ -0,0 +1,7 @@
---
- import_playbook: unix.yaml
- hosts: localhost
roles:
- role: obsidian

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'