Compare commits
1 Commits
db3d146dc9
...
b733305a28
Author | SHA1 | Date | |
---|---|---|---|
b733305a28 |
@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- import_playbook: UnixCLI.yaml
|
- import_playbook: UnixCLI.yaml
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- role: 1password
|
- role: 1password
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- import_playbook: UnixGUI.yaml
|
- import_playbook: Unix.yaml
|
||||||
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: obsidian
|
- role: obsidian
|
||||||
|
@ -4,12 +4,9 @@
|
|||||||
url: https://api.github.com/repos/jmespath/jp/releases/latest
|
url: https://api.github.com/repos/jmespath/jp/releases/latest
|
||||||
register: latest
|
register: latest
|
||||||
|
|
||||||
|
# TODO: Support arm64
|
||||||
- set_fact:
|
- set_fact:
|
||||||
arch: '{{ [ansible_architecture] |
|
asset_query: '[?contains(name, `jp-darwin-amd64`)] | [0]'
|
||||||
map("extract", { "arm64": "arm64", "x86_64": "amd64" }) | first }}'
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
asset_query: '[?contains(name, `jp-darwin-{{arch}}`)] | [0]'
|
|
||||||
assets: '{{latest.json.assets}}'
|
assets: '{{latest.json.assets}}'
|
||||||
latest_version: '{{latest.json.tag_name}}'
|
latest_version: '{{latest.json.tag_name}}'
|
||||||
jp_exe: '{{ansible_env.HOME}}/.local/bin/jp'
|
jp_exe: '{{ansible_env.HOME}}/.local/bin/jp'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: install homebrew package
|
- name: install homebrew package
|
||||||
homebrew_cask:
|
homebrew:
|
||||||
name: obsidian
|
name: obsidian
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
@ -8,4 +8,4 @@
|
|||||||
git:
|
git:
|
||||||
repo: git@github.com:kbenzie/notes.git
|
repo: git@github.com:kbenzie/notes.git
|
||||||
dest: '{{ansible_env.HOME}}/Documents/Notes'
|
dest: '{{ansible_env.HOME}}/Documents/Notes'
|
||||||
version: main
|
branch: main
|
||||||
|
Loading…
x
Reference in New Issue
Block a user