Compare commits
11 Commits
ab96a7d8c6
...
benie/gnom
| Author | SHA1 | Date | |
|---|---|---|---|
| f5fc30a924 | |||
| 1f4c43a4a1 | |||
| 3b31dc06fe | |||
| 876db8ecfb | |||
| 959f4b2b32 | |||
| d8c6c6a808 | |||
| 5420eb9cd5 | |||
| 3fee590a8f | |||
| 0b71c22019 | |||
| db0b181473 | |||
| 65d96b2faa |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
external
|
external
|
||||||
modules/win_git*
|
modules/win_git*
|
||||||
|
playbooks/test.yaml
|
||||||
|
|||||||
3
playbooks/Linux.yaml
Normal file
3
playbooks/Linux.yaml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
- import_playbook: LinuxCLI.yaml
|
||||||
|
- import_playbook: UnixGUI.yaml
|
||||||
5
playbooks/LinuxCLI.yaml
Normal file
5
playbooks/LinuxCLI.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: gdb
|
||||||
|
- role: system-info
|
||||||
@@ -8,26 +8,25 @@
|
|||||||
- role: zsh
|
- role: zsh
|
||||||
- role: neovim
|
- role: neovim
|
||||||
- role: tmux
|
- role: tmux
|
||||||
- role: system-info
|
|
||||||
when: '"WSL" not in ansible_kernel'
|
|
||||||
|
|
||||||
- role: ag
|
- role: ag
|
||||||
|
- role: bash
|
||||||
- role: bat
|
- role: bat
|
||||||
- role: curl
|
- role: curl
|
||||||
|
- role: editline
|
||||||
- role: fzf
|
- role: fzf
|
||||||
- role: gh
|
- role: gh
|
||||||
- role: git
|
- role: git
|
||||||
|
- role: glab
|
||||||
- role: htop
|
- role: htop
|
||||||
- role: jp
|
- role: jp
|
||||||
- role: jq
|
- role: jq
|
||||||
- role: readline
|
- role: readline
|
||||||
- role: tidy
|
- role: tidy
|
||||||
- role: tree
|
- role: tree
|
||||||
- role: yq
|
|
||||||
- role: watch
|
- role: watch
|
||||||
|
- role: wget
|
||||||
|
- role: yq
|
||||||
|
|
||||||
- role: llvm
|
- role: llvm
|
||||||
- role: nodejs
|
- role: nodejs
|
||||||
|
|
||||||
- role: wsl
|
|
||||||
when: '"WSL" in ansible_kernel'
|
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
---
|
---
|
||||||
- import_playbook: UnixCLI.yaml
|
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- role: 1password
|
- role: 1password
|
||||||
|
- role: fonts
|
||||||
|
- role: obsidian
|
||||||
|
- role: webcatalog
|
||||||
|
|||||||
@@ -1,3 +1,6 @@
|
|||||||
---
|
---
|
||||||
- import_playbook: Unix.yaml
|
- import_playbook: UnixCLI.yaml
|
||||||
- import_playbook: Windows.yaml
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: gdb
|
||||||
|
- role: wsl
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
- import_playbook: UnixCLI.yaml
|
||||||
|
- hosts: localhost
|
||||||
|
roles:
|
||||||
|
- role: system-info
|
||||||
- import_playbook: UnixGUI.yaml
|
- import_playbook: UnixGUI.yaml
|
||||||
- hosts: localhost
|
- hosts: localhost
|
||||||
roles:
|
roles:
|
||||||
- role: fonts
|
|
||||||
- role: mas
|
- role: mas
|
||||||
|
|
||||||
- role: iterm
|
- role: iterm
|
||||||
- role: magnet
|
- role: magnet
|
||||||
- role: microsoft-remote-desktop
|
- role: microsoft-remote-desktop
|
||||||
- role: obsidian
|
|
||||||
- role: viscosity
|
- role: viscosity
|
||||||
- role: webcatalog
|
|
||||||
|
|||||||
@@ -1,2 +1,3 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||||
|
# TODO: If gnome-shell on wayland set global key binding in custom keyboard settings
|
||||||
|
|||||||
6
roles/gdb/RedHat.yaml
Normal file
6
roles/gdb/RedHat.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: install dnf package
|
||||||
|
become: true
|
||||||
|
dnf:
|
||||||
|
name: gdb
|
||||||
|
state: latest
|
||||||
6
roles/glab/tasks/RedHat.yaml
Normal file
6
roles/glab/tasks/RedHat.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: install dnf package
|
||||||
|
become: true
|
||||||
|
dnf:
|
||||||
|
name: glab
|
||||||
|
state: latest
|
||||||
5
roles/obsidian/handlers/main.yaml
Normal file
5
roles/obsidian/handlers/main.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: install desktop menu
|
||||||
|
command: >
|
||||||
|
xdg-desktop-menu install --mode user
|
||||||
|
{{ansible_env.HOME}}/.local/share/applications/obsidian-obsidian.desktop
|
||||||
@@ -4,8 +4,4 @@
|
|||||||
name: obsidian
|
name: obsidian
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: clone notes repository
|
- include_tasks: Unix.yaml
|
||||||
git:
|
|
||||||
repo: git@github.com:kbenzie/notes.git
|
|
||||||
dest: '{{ansible_env.HOME}}/Documents/Notes'
|
|
||||||
version: main
|
|
||||||
|
|||||||
48
roles/obsidian/tasks/RedHat.yaml
Normal file
48
roles/obsidian/tasks/RedHat.yaml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
---
|
||||||
|
- name: stat symlink
|
||||||
|
stat:
|
||||||
|
path: '{{ansible_env.HOME}}/.local/bin/Obsidian'
|
||||||
|
register: symlink_file
|
||||||
|
|
||||||
|
- name: get latest release
|
||||||
|
uri:
|
||||||
|
url: https://api.github.com/repos/obsidianmd/obsidian-releases/releases/latest
|
||||||
|
register: latest
|
||||||
|
|
||||||
|
- set_fact:
|
||||||
|
appimage: 'Obsidian-{{latest.json.name}}.AppImage'
|
||||||
|
- set_fact:
|
||||||
|
filepath: '{{ansible_env.HOME}}/.local/bin/{{appimage}}'
|
||||||
|
asset_query: '[?contains(name, `{{appimage}}`)] | [0]'
|
||||||
|
- set_fact:
|
||||||
|
needs_installed:
|
||||||
|
'{{not symlink_file.stat.exists or symlink_file.stat.lnk_source != filepath}}'
|
||||||
|
asset: '{{latest.json.assets | to_json | from_json | json_query(asset_query)}}'
|
||||||
|
|
||||||
|
- name: download latest version
|
||||||
|
get_url:
|
||||||
|
url: '{{asset.browser_download_url}}'
|
||||||
|
dest: '{{filepath}}'
|
||||||
|
mode: '0755'
|
||||||
|
|
||||||
|
- name: create symlink
|
||||||
|
file:
|
||||||
|
src: '{{filepath}}'
|
||||||
|
dest: '{{ansible_env.HOME}}/.local/bin/Obsidian'
|
||||||
|
state: link
|
||||||
|
|
||||||
|
# TODO: icon for desktop file
|
||||||
|
|
||||||
|
- name: create desktop file
|
||||||
|
template:
|
||||||
|
src: obsidian.desktop.j2
|
||||||
|
dest: '{{ansible_env.HOME}}/.local/share/applications/obsidian-obsidian.desktop'
|
||||||
|
notify: install desktop menu
|
||||||
|
|
||||||
|
- name: remove old appimage
|
||||||
|
when: needs_installed and symlink_file.stat.exists
|
||||||
|
file:
|
||||||
|
path: '{{symlink_file.stat.lnk_source}}'
|
||||||
|
state: absent
|
||||||
|
|
||||||
|
- include_tasks: Unix.yaml
|
||||||
6
roles/obsidian/tasks/Unix.yaml
Normal file
6
roles/obsidian/tasks/Unix.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: clone notes repository
|
||||||
|
git:
|
||||||
|
repo: git@github.com:kbenzie/notes.git
|
||||||
|
dest: '{{ansible_env.HOME}}/Documents/Notes'
|
||||||
|
version: main
|
||||||
11
roles/obsidian/templates/obsidian.desktop.j2
Normal file
11
roles/obsidian/templates/obsidian.desktop.j2
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Obsidian
|
||||||
|
Exec={{ansible_env.HOME}}/.local/bin/Obsidian
|
||||||
|
Terminal=false
|
||||||
|
Type=Application
|
||||||
|
Icon=obsidian
|
||||||
|
StartupWMClass=Obsidian
|
||||||
|
X-AppImage-Version={{latest.json.name}}
|
||||||
|
Comment=Private and flexible note‑taking app that adapts to the way you think.
|
||||||
|
MimeType=x-scheme-handler/obsidian;
|
||||||
|
Categories=Utility;
|
||||||
4
roles/ulauncher/tasks/main.yaml
Normal file
4
roles/ulauncher/tasks/main.yaml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
# TODO: Install ulauncher - or find a better alternative
|
||||||
|
# TODO: If gnome-shell on wayland set global key binding in custom keyboard settings
|
||||||
|
# TODO: Clone https://github.com/shepda/ulauncher-adwaita-darkish into ~/.config/ulauncher/user-themes
|
||||||
5
roles/webcatalog/handlers/main.yaml
Normal file
5
roles/webcatalog/handlers/main.yaml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
- name: install desktop menu
|
||||||
|
command: >
|
||||||
|
xdg-desktop-menu install --mode user
|
||||||
|
{{ansible_env.HOME}}/.local/share/applications/webcatalog-webcatalog.desktop
|
||||||
@@ -40,6 +40,7 @@
|
|||||||
template:
|
template:
|
||||||
src: webcatalog.desktop.j2
|
src: webcatalog.desktop.j2
|
||||||
dest: '{{ansible_env.HOME}}/.local/share/applications/webcatalog-webcatalog.desktop'
|
dest: '{{ansible_env.HOME}}/.local/share/applications/webcatalog-webcatalog.desktop'
|
||||||
|
notify: install desktop menu
|
||||||
|
|
||||||
- name: remove old appimage
|
- name: remove old appimage
|
||||||
when: needs_installed and symlink_file.stat.exists
|
when: needs_installed and symlink_file.stat.exists
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
- name: install apt package
|
- name: install apt package
|
||||||
|
become: true
|
||||||
apt:
|
apt:
|
||||||
name: wget
|
name: wget
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
6
roles/wget/tasks/RedHat.yaml
Normal file
6
roles/wget/tasks/RedHat.yaml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
- name: install dnf package
|
||||||
|
become: true
|
||||||
|
dnf:
|
||||||
|
name: wget
|
||||||
|
state: latest
|
||||||
Reference in New Issue
Block a user