Compare commits
1 Commits
moonlight
...
4a4e1bfe20
| Author | SHA1 | Date | |
|---|---|---|---|
| 4a4e1bfe20 |
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"yaml.schemas": {
|
|
||||||
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible.json#/$defs/playbook": [
|
|
||||||
"./*.yaml"
|
|
||||||
],
|
|
||||||
"https://raw.githubusercontent.com/ansible-community/schemas/main/f/ansible.json#/$defs/tasks": [
|
|
||||||
"./roles/*/handlers/*.yaml",
|
|
||||||
"./roles/*/tasks/*.yaml",
|
|
||||||
"./tasks.yaml"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
34
Unix.yaml
34
Unix.yaml
@@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: localhost
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: sudo
|
|
||||||
when: ansible_user_id != "root"
|
|
||||||
|
|
||||||
- role: zsh
|
|
||||||
- role: neovim
|
|
||||||
- role: tmux
|
|
||||||
- role: system-info
|
|
||||||
when: '"WSL" not in ansible_kernel'
|
|
||||||
|
|
||||||
- role: ag
|
|
||||||
- role: bat
|
|
||||||
- role: curl
|
|
||||||
- role: fzf
|
|
||||||
- role: git
|
|
||||||
- role: htop
|
|
||||||
- role: jp
|
|
||||||
- role: jq
|
|
||||||
- role: readline
|
|
||||||
- role: tidy
|
|
||||||
- role: tree
|
|
||||||
- role: yq
|
|
||||||
|
|
||||||
- role: llvm
|
|
||||||
- role: nodejs
|
|
||||||
- role: python
|
|
||||||
|
|
||||||
- role: 1password
|
|
||||||
|
|
||||||
- role: wsl
|
|
||||||
when: '"WSL" in ansible_kernel'
|
|
||||||
3
WSL.yaml
3
WSL.yaml
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
- import_playbook: Unix.yaml
|
|
||||||
- import_playbook: Windows.yaml
|
|
||||||
35
Windows.yaml
35
Windows.yaml
@@ -1,35 +0,0 @@
|
|||||||
---
|
|
||||||
- hosts: windows
|
|
||||||
|
|
||||||
vars:
|
|
||||||
install_cad_apps: false
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: git
|
|
||||||
- role: powershell
|
|
||||||
- role: neovim
|
|
||||||
- role: system-info
|
|
||||||
|
|
||||||
- role: ag
|
|
||||||
- role: bat
|
|
||||||
- role: curl
|
|
||||||
- role: fzf
|
|
||||||
- role: tree
|
|
||||||
- role: jq
|
|
||||||
- role: yq
|
|
||||||
|
|
||||||
- role: llvm
|
|
||||||
- role: nodejs
|
|
||||||
- role: python
|
|
||||||
|
|
||||||
- role: 1password
|
|
||||||
- role: autohotkey
|
|
||||||
- role: firefox
|
|
||||||
- role: obsidian
|
|
||||||
- role: powertoys
|
|
||||||
- role: windows-terminal
|
|
||||||
|
|
||||||
- role: autodesk-fusion360
|
|
||||||
when: install_cad_apps
|
|
||||||
- role: prusaslicer
|
|
||||||
when: install_cad_apps
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
---
|
|
||||||
- import_playbook: Unix.yaml
|
|
||||||
|
|
||||||
- hosts: localhost
|
|
||||||
|
|
||||||
roles:
|
|
||||||
- role: obsidian
|
|
||||||
@@ -1,9 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: install homebrew package
|
- name: install homebrew package
|
||||||
homebrew_cask:
|
homebrew_cask:
|
||||||
name:
|
name: 1password
|
||||||
- 1password
|
|
||||||
- 1password-cli
|
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- include_tasks: zsh-completion.yaml
|
|
||||||
|
|||||||
@@ -1,48 +1 @@
|
|||||||
---
|
# TODO: https://support.1password.com/install-linux/#debian-or-ubuntu
|
||||||
- name: add apt signing key
|
|
||||||
when: '"WSL" not in ansible_kernel'
|
|
||||||
become: true
|
|
||||||
apt_key:
|
|
||||||
url: https://downloads.1password.com/linux/keys/1password.asc
|
|
||||||
keyring: /etc/apt/trusted.gpg.d/1password-archive-keyring.gpg
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- when: ansible_machine == 'x86_64'
|
|
||||||
set_fact:
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that: arch is defined
|
|
||||||
fail_msg: 'Architecture not currently supported: {{ansible_machine}}'
|
|
||||||
|
|
||||||
- name: add apt repository
|
|
||||||
when: '"WSL" not in ansible_kernel'
|
|
||||||
become: true
|
|
||||||
apt_repository:
|
|
||||||
repo: >-
|
|
||||||
deb [arch={{arch}}
|
|
||||||
signed-by=/etc/apt/trusted.gpg.d/1password-archive-keyring.gpg]
|
|
||||||
https://downloads.1password.com/linux/debian/{{arch}} stable main
|
|
||||||
|
|
||||||
- name: install gui package
|
|
||||||
when: '"WSL" not in ansible_kernel'
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: 1password
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: install cli package
|
|
||||||
when: '"WSL" not in ansible_kernel'
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: 1password-cli
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: create symlink to op.exe
|
|
||||||
when: '"WSL" in ansible_kernel'
|
|
||||||
file:
|
|
||||||
state: link
|
|
||||||
src: /mnt/c/Users/Benie/AppData/Local/1Password/cli/op.exe
|
|
||||||
dest: ~/.local/bin/op
|
|
||||||
|
|
||||||
- include_tasks: zsh-completion.yaml
|
|
||||||
|
|||||||
@@ -1,111 +1,12 @@
|
|||||||
---
|
---
|
||||||
# NOTE: The 1Password chocolatey packages are not up to date.
|
- name: install chocolatey package
|
||||||
|
win_chocolatey:
|
||||||
# GUI
|
name:
|
||||||
- set_fact:
|
- 1password
|
||||||
app_exe: '{{ansible_env.LOCALAPPDATA}}/1Password/app/8/1Password.exe'
|
state: latest
|
||||||
installer_exe: '{{ansible_env.TEMP}}/1PasswordSetup-latest.exe'
|
|
||||||
|
|
||||||
- name: check if already installed
|
|
||||||
win_stat:
|
|
||||||
path: '{{app_exe}}'
|
|
||||||
register: app_stat
|
|
||||||
|
|
||||||
- name: get installed version
|
|
||||||
when: app_stat.stat.exists == True
|
|
||||||
win_command: '{{app_exe}} --version'
|
|
||||||
register: app_version
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: app_stat.stat.exists == True
|
|
||||||
set_fact:
|
|
||||||
installed_version: '{{app_version.stdout.strip()}}'
|
|
||||||
|
|
||||||
- name: download latest installer
|
|
||||||
win_get_url:
|
|
||||||
url: https://downloads.1password.com/win/1PasswordSetup-latest.exe
|
|
||||||
dest: '{{installer_exe}}'
|
|
||||||
|
|
||||||
- name: get installer version
|
|
||||||
win_shell: |
|
|
||||||
(Get-ItemProperty {{installer_exe}}).VersionInfo.ProductVersion
|
|
||||||
register: installer_product_version
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
# FIXME: The [5:] is to account for a mystery "\e[6 q" prefix, not sure if this
|
|
||||||
# is consistent across machines or some other oddity.
|
|
||||||
- set_fact:
|
|
||||||
installer_version: '{{installer_product_version.stdout.strip()[5:]}}'
|
|
||||||
|
|
||||||
- name: run installer
|
|
||||||
when: installed_version is not defined or installed_version != installer_version
|
|
||||||
win_command: '{{installer_exe}}'
|
|
||||||
|
|
||||||
- name: create start menu shortcut
|
- name: create start menu shortcut
|
||||||
win_shortcut:
|
win_shortcut:
|
||||||
src: '{{app_exe}}'
|
src: '{{ansible_env.LOCALAPPDATA}}/1Password/app/7/1Password.exe'
|
||||||
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/1Password.lnk'
|
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/1Password.lnk'
|
||||||
icon: '{{app_exe}},0'
|
icon: '{{ansible_env.LOCALAPPDATA}}/1Password/app/7/1Password.exe,0'
|
||||||
|
|
||||||
# CLI
|
|
||||||
- set_fact:
|
|
||||||
cli_dir: '{{ansible_env.LOCALAPPDATA}}\1Password\cli'
|
|
||||||
cli_zip: '{{ansible_env.TEMP}}/op_windows_amd64.zip'
|
|
||||||
- set_fact:
|
|
||||||
cli_exe: '{{cli_dir}}\op.exe'
|
|
||||||
|
|
||||||
- name: check if op already installed
|
|
||||||
win_stat:
|
|
||||||
path: '{{cli_exe}}'
|
|
||||||
register: cli_stat
|
|
||||||
|
|
||||||
- name: get installed op version
|
|
||||||
when: cli_stat.stat.exists == True
|
|
||||||
win_command: '{{cli_exe}} --version'
|
|
||||||
register: cli_version
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: cli_stat.stat.exists == True
|
|
||||||
set_fact:
|
|
||||||
cli_installed_version: '{{cli_version.stdout.strip()}}'
|
|
||||||
|
|
||||||
- name: get list of op releases
|
|
||||||
win_uri:
|
|
||||||
url: https://raw.githubusercontent.com/kbenzie/op-release-scraper/main/op-releases.json
|
|
||||||
return_content: true
|
|
||||||
register: releases
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
latest: '{{releases.json[0]}}'
|
|
||||||
|
|
||||||
- name: download latest op zip archive
|
|
||||||
when: cli_installed_version is not defined or cli_installed_version != latest.version
|
|
||||||
win_get_url:
|
|
||||||
url: '{{latest.downloads.Windows.amd64}}'
|
|
||||||
dest: '{{cli_zip}}'
|
|
||||||
|
|
||||||
- name: unzip op zip archive
|
|
||||||
when: cli_installed_version is not defined or cli_installed_version != latest.version
|
|
||||||
win_unzip:
|
|
||||||
src: '{{cli_zip}}'
|
|
||||||
dest: '{{cli_dir}}'
|
|
||||||
|
|
||||||
- name: add op install directory to user PATH
|
|
||||||
win_path:
|
|
||||||
scope: user
|
|
||||||
name: Path
|
|
||||||
elements: '{{cli_dir}}'
|
|
||||||
|
|
||||||
- name: get op powershell completion script
|
|
||||||
win_command:
|
|
||||||
argv:
|
|
||||||
- '{{ansible_env.LOCALAPPDATA}}/1Password/cli/op.exe'
|
|
||||||
- completion
|
|
||||||
- powershell
|
|
||||||
register: powershell_completion_script
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: create op powershell completion file
|
|
||||||
win_copy:
|
|
||||||
content: '{{powershell_completion_script.stdout}}'
|
|
||||||
dest: '{{cli_dir}}/opProfile.psm1'
|
|
||||||
|
|||||||
@@ -1,10 +0,0 @@
|
|||||||
---
|
|
||||||
- name: get op zsh completion script
|
|
||||||
command: op completion zsh
|
|
||||||
register: zsh_completion_script
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- name: create op zsh completion file
|
|
||||||
copy:
|
|
||||||
content: '{{zsh_completion_script.stdout}}'
|
|
||||||
dest: ~/.local/share/zsh/site-functions/_op
|
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: install homebrew package
|
- name: install homebrew package
|
||||||
homebrew:
|
apt:
|
||||||
name: the_silver_searcher
|
name: the_silver_searcher
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: install choco package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: ag
|
name: ag
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- assert:
|
|
||||||
that: ansible_os_family == "Windows"
|
|
||||||
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: autodesk-fusion360
|
|
||||||
state: latest
|
|
||||||
@@ -9,10 +9,6 @@
|
|||||||
repo: git@code.infektor.net:config/AutoHotKey.git
|
repo: git@code.infektor.net:config/AutoHotKey.git
|
||||||
dest: '{{autohotkey_repo_dir}}'
|
dest: '{{autohotkey_repo_dir}}'
|
||||||
branch: master
|
branch: master
|
||||||
- win_owner:
|
|
||||||
path: '{{autohotkey_repo_dir}}'
|
|
||||||
user: Benie
|
|
||||||
recurse: true
|
|
||||||
|
|
||||||
- name: create scheduled task
|
- name: create scheduled task
|
||||||
win_scheduled_task:
|
win_scheduled_task:
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
- set_fact:
|
- name: install apt package
|
||||||
use_github: '{{
|
become: true
|
||||||
ansible_distribution == "Ubuntu" and
|
apt:
|
||||||
ansible_distribution_version == "18.04"
|
name: bat
|
||||||
}}'
|
state: latest
|
||||||
- debug: msg={{use_github}}
|
|
||||||
|
|
||||||
- when: use_github
|
- name: update bat alternative
|
||||||
include_tasks: deb.yaml
|
become: true
|
||||||
|
alternatives:
|
||||||
- when: not use_github
|
name: bat
|
||||||
include_tasks: apt.yaml
|
path: /usr/bin/batcat
|
||||||
|
link: /usr/local/bin/bat
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: Bat
|
|
||||||
state: latest
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: bat
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: update bat alternative
|
|
||||||
become: true
|
|
||||||
alternatives:
|
|
||||||
name: bat
|
|
||||||
path: /usr/bin/batcat
|
|
||||||
link: /usr/local/bin/bat
|
|
||||||
@@ -1,65 +0,0 @@
|
|||||||
---
|
|
||||||
- name: get latest github release
|
|
||||||
uri:
|
|
||||||
url: https://api.github.com/repos/sharkdp/bat/releases/latest
|
|
||||||
register: latest
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
latest_version: '{{latest.json.tag_name[1:]}}'
|
|
||||||
bat_exe: '/usr/bin/bat'
|
|
||||||
|
|
||||||
- name: check if already installed
|
|
||||||
stat:
|
|
||||||
path: '{{bat_exe}}'
|
|
||||||
register: bat_stat
|
|
||||||
|
|
||||||
- name: get installed version
|
|
||||||
when: bat_stat.stat.exists == True
|
|
||||||
command: '{{bat_exe}} --version'
|
|
||||||
register: bat_version
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: bat_stat.stat.exists == True
|
|
||||||
set_fact:
|
|
||||||
installed_version:
|
|
||||||
'{{bat_version.stdout.strip() | regex_replace("^.*(\d+\.\d+\.\d+).*$", "\1")}}'
|
|
||||||
|
|
||||||
- when: ansible_machine == "x86_64"
|
|
||||||
set_fact:
|
|
||||||
arch: amd64
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that: arch is defined
|
|
||||||
fail_msg: 'Architecture not currently supported: {{ansible_machine}}'
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
assets: '{{latest.json.assets}}'
|
|
||||||
asset_query: '[?contains(name, `bat-musl_`)] | [?contains(name, `amd64.deb`)] | [0]'
|
|
||||||
pkg_dir: '{{ansible_env.HOME}}/.local/pkg/bat'
|
|
||||||
- set_fact:
|
|
||||||
asset: '{{assets | to_json | from_json | json_query(asset_query)}}'
|
|
||||||
bat_deb: '{{pkg_dir}}/bat.deb'
|
|
||||||
|
|
||||||
- name: create directory for deb file download
|
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
path: '{{pkg_dir}}'
|
|
||||||
|
|
||||||
- name: download .deb file
|
|
||||||
when: installed_version is not defined or installed_version != latest_version
|
|
||||||
get_url:
|
|
||||||
url: '{{asset.browser_download_url}}'
|
|
||||||
dest: '{{bat_deb}}'
|
|
||||||
|
|
||||||
- name: install .deb file
|
|
||||||
when: installed_version is not defined or installed_version != latest_version
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
deb: '{{bat_deb}}'
|
|
||||||
|
|
||||||
- name: remove .deb file
|
|
||||||
when: installed_version is not defined or installed_version != latest_version
|
|
||||||
file:
|
|
||||||
state: absent
|
|
||||||
path: '{{bat_deb}}'
|
|
||||||
changed_when: false
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: curl
|
|
||||||
state: latest
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: curl
|
|
||||||
state: latest
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: curl
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: fzf
|
|
||||||
state: latest
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
- name: clone fzf repo
|
|
||||||
git:
|
|
||||||
repo: https://github.com/junegunn/fzf.git
|
|
||||||
dest: ~/.local/src/fzf
|
|
||||||
notify: install fzf binaries
|
|
||||||
- meta: flush_handlers
|
|
||||||
|
|
||||||
- name: create symbolic links
|
|
||||||
file:
|
|
||||||
state: link
|
|
||||||
src: ~/.local/src/fzf/bin/fzf
|
|
||||||
dest: ~/.local/bin/fzf
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: fzf
|
|
||||||
state: latest
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: fzf
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: gdb
|
|
||||||
state: latest
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
- set_fact:
|
|
||||||
gdb_config_dir: '{{ansible_env.HOME}}/.config/gdb'
|
|
||||||
|
|
||||||
- name: create config directory
|
|
||||||
file:
|
|
||||||
path: '{{gdb_config_dir}}'
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
gdb_config_file: '{{gdb_config_dir}}/gdbinit'
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
|
|
||||||
# gdb 11.1 introduced support for config files that respect the XDG base
|
|
||||||
# directory spec, handle the boths paths dependant on the gdb version install.
|
|
||||||
- name: get installed version
|
|
||||||
command: gdb --version
|
|
||||||
register: gdb_version_output
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
gdb_version: '{{gdb_version_output.stdout | regex_search("(\d+)\.(\d+)", "\1", "\2")}}'
|
|
||||||
- set_fact:
|
|
||||||
gdb_xdg_base_dir_check:
|
|
||||||
gdb_version[0] | int > 11 or (
|
|
||||||
gdb_version[0] | int == 11 and gdb_version[1] | int == 1
|
|
||||||
)
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
gdb_config_file: '{{ansible_env.HOME}}/.gdbinit'
|
|
||||||
gdb_state_dir: '{{ansible_env.HOME}}/.local/state/gdb'
|
|
||||||
|
|
||||||
- when: gdb_xdg_base_dir_check
|
|
||||||
include_tasks: gdb-11.1-config.yaml
|
|
||||||
|
|
||||||
- name: create config file
|
|
||||||
template:
|
|
||||||
src: gdbinit
|
|
||||||
dest: '{{gdb_config_file}}'
|
|
||||||
|
|
||||||
- name: create state directory
|
|
||||||
file:
|
|
||||||
path: '{{gdb_state_dir}}'
|
|
||||||
state: directory
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
# Enable saving command history
|
|
||||||
set history filename {{gdb_state_dir}}/history
|
|
||||||
set history save on
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
---
|
|
||||||
- name: get json containing all releases
|
|
||||||
win_uri:
|
|
||||||
url: 'https://api.github.com/repos/git-for-windows/git/releases/tags/v{{git_version}}.windows.1'
|
|
||||||
return_content: true
|
|
||||||
register: git_release
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
git_installer_exe: 'Git-{{git_version}}-64-bit.exe'
|
|
||||||
- set_fact:
|
|
||||||
git_asset_query: '[?contains(name, `{{git_installer_exe}}`)] | [0]'
|
|
||||||
git_installer_path: '{{ansible_env.TEMP}}/{{git_installer_exe}}'
|
|
||||||
- name: select asset from release
|
|
||||||
set_fact:
|
|
||||||
git_asset: '{{git_release.json.assets | json_query(git_asset_query)}}'
|
|
||||||
|
|
||||||
- name: download installer
|
|
||||||
win_get_url:
|
|
||||||
url: '{{git_asset.browser_download_url}}'
|
|
||||||
dest: '{{git_installer_path}}'
|
|
||||||
|
|
||||||
- name: run installer command
|
|
||||||
win_command:
|
|
||||||
argv:
|
|
||||||
- '{{git_installer_path}}'
|
|
||||||
- '/GitAndUnixToolsOnPath'
|
|
||||||
- '/NoShellIntegration'
|
|
||||||
- '/NoGuiHereIntegration'
|
|
||||||
- '/NoCredentialManager'
|
|
||||||
- '/NoOpenSSH'
|
|
||||||
- '/Silent'
|
|
||||||
- '/SuppressMsgBoxes'
|
|
||||||
- '/NoCancel'
|
|
||||||
- '/NoRestart'
|
|
||||||
@@ -1,35 +1,14 @@
|
|||||||
---
|
---
|
||||||
# Pinned to 2.36.1 because the unofficial win_git module hangs when using
|
- name: install chocolatey package
|
||||||
# 2.37.3, this is either a breaking change in 2.37.x or an incompatibility with
|
win_chocolatey:
|
||||||
# the win_git module. The git chocolatey package does not respect the version
|
name: git
|
||||||
# argument and always installs the most recent version, so instead download the
|
package_params: >-
|
||||||
# installer from GitHub and install manually.
|
/GitAndUnixToolsOnPath
|
||||||
- set_fact:
|
/NoShellIntegration
|
||||||
git_version: 2.36.1
|
/NoGuiHereIntegration
|
||||||
git_cli_exe: '{{ansible_env.ProgramFiles}}/Git/cmd/git.exe'
|
/NoCredentialManager
|
||||||
git_run_installer: false
|
/NoOpenSSH
|
||||||
|
state: latest
|
||||||
- name: detect if Git for Windows is installed
|
|
||||||
win_stat:
|
|
||||||
path: '{{git_cli_exe}}'
|
|
||||||
register: git_cli_stat
|
|
||||||
|
|
||||||
- when: not git_cli_stat.stat.exists
|
|
||||||
set_fact:
|
|
||||||
git_run_installer: true
|
|
||||||
|
|
||||||
- name: check installed version
|
|
||||||
when: git_cli_stat.stat.exists
|
|
||||||
win_command: '"{{git_cli_exe}}" --version'
|
|
||||||
register: git_cli_version
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: git_cli_stat.stat.exists and git_version not in git_cli_version.stdout
|
|
||||||
set_fact:
|
|
||||||
git_run_installer: true
|
|
||||||
|
|
||||||
- include_tasks: Windows-installer.yaml
|
|
||||||
when: git_run_installer
|
|
||||||
|
|
||||||
- name: clone config repos
|
- name: clone config repos
|
||||||
win_git:
|
win_git:
|
||||||
@@ -37,11 +16,6 @@
|
|||||||
dest: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
|
dest: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
|
||||||
version: master
|
version: master
|
||||||
with_items: '{{git_config_repos}}'
|
with_items: '{{git_config_repos}}'
|
||||||
- win_owner:
|
|
||||||
path: '{{ansible_env.USERPROFILE}}/.config/{{item.name}}'
|
|
||||||
user: Benie
|
|
||||||
recurse: true
|
|
||||||
with_items: '{{git_config_repos}}'
|
|
||||||
|
|
||||||
# - TODO: install pip packages
|
# - TODO: install pip packages
|
||||||
# win_pip:
|
# win_pip:
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: htop
|
|
||||||
state: latest
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: htop
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
---
|
|
||||||
- name: get latest github release
|
|
||||||
uri:
|
|
||||||
url: https://api.github.com/repos/jmespath/jp/releases/latest
|
|
||||||
register: latest
|
|
||||||
|
|
||||||
# TODO: Support arm64
|
|
||||||
- set_fact:
|
|
||||||
asset_query: '[?contains(name, `jp-darwin-amd64`)] | [0]'
|
|
||||||
assets: '{{latest.json.assets}}'
|
|
||||||
latest_version: '{{latest.json.tag_name}}'
|
|
||||||
jp_exe: '{{ansible_env.HOME}}/.local/bin/jp'
|
|
||||||
|
|
||||||
- name: check if already installed
|
|
||||||
stat:
|
|
||||||
path: '{{jp_exe}}'
|
|
||||||
register: jp_exe
|
|
||||||
|
|
||||||
- name: get installed version
|
|
||||||
when: jp_stat.stat.exists == True
|
|
||||||
command: '{{jp_exe}} --version'
|
|
||||||
register: jp_version_output
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: jp_stat.stat.exists == True
|
|
||||||
set_fact:
|
|
||||||
installed_version:
|
|
||||||
'{{jp_version_output.stdout.strip() | regex_replace("^.*(\d+\.\d+\.\d+).*$", "\1")}}'
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
asset: '{{assets | to_json | from_json | json_query(asset_query)}}'
|
|
||||||
|
|
||||||
- name: download executable
|
|
||||||
when: installed_version is not defined or installed_version != latest_version
|
|
||||||
get_url:
|
|
||||||
url: '{{asset.browser_download_url}}'
|
|
||||||
dest: '{{jp_exe}}'
|
|
||||||
mode: +x
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: jp
|
|
||||||
state: latest
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
- assert:
|
|
||||||
that: ansible_os_family != "Windows"
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: jq
|
|
||||||
state: latest
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
apt:
|
|
||||||
name: jq
|
|
||||||
state: latest
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: jq
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
13
roles/llvm/tasks/Debian-unstable.yaml
Normal file
13
roles/llvm/tasks/Debian-unstable.yaml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
- name: install apt packages
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- clang
|
||||||
|
- clang-format
|
||||||
|
- clang-tidy
|
||||||
|
- clang-tools
|
||||||
|
- clangd
|
||||||
|
- llvm
|
||||||
|
state: latest
|
||||||
|
install_recommends: true
|
||||||
@@ -1,13 +1,2 @@
|
|||||||
---
|
---
|
||||||
- name: install apt packages
|
- include_tasks: '{{ansible_distribution}}-{{ansible_distribution_version}}.yaml'
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- clang
|
|
||||||
- clang-format
|
|
||||||
- clang-tidy
|
|
||||||
- clang-tools
|
|
||||||
- clangd
|
|
||||||
- llvm
|
|
||||||
state: latest
|
|
||||||
install_recommends: true
|
|
||||||
|
|||||||
50
roles/llvm/tasks/Ubuntu-18.04.yaml
Normal file
50
roles/llvm/tasks/Ubuntu-18.04.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
- name: get list of releases from github
|
||||||
|
uri:
|
||||||
|
url: https://api.github.com/repos/llvm/llvm-project/releases
|
||||||
|
register: releases
|
||||||
|
|
||||||
|
- name: select latest release with Ubuntu binaries
|
||||||
|
set_fact:
|
||||||
|
release: '{{releases.json | json_query("[?assets | [?contains(name, `x86_64-linux-gnu-ubuntu`)]] | [0]")}}'
|
||||||
|
|
||||||
|
- name: select from latest available release with x86_64-linux-gnu-ubuntu asset
|
||||||
|
set_fact:
|
||||||
|
asset: '{{release | json_query("assets | [?contains(name, `x86_64-linux-gnu-ubuntu`)] | [?ends_with(name, `.tar.xz`)] | [0]")}}'
|
||||||
|
|
||||||
|
- name: process release name for /usr/local/lib/{{package_name}}
|
||||||
|
set_fact:
|
||||||
|
package_name: '{{release.name | lower | regex_replace(" (\d+)\.\d+\.\d+", "-\1")}}'
|
||||||
|
|
||||||
|
- name: set path for archive download
|
||||||
|
set_fact:
|
||||||
|
archive_path: '/tmp/{{asset.name}}'
|
||||||
|
|
||||||
|
- name: download release archive
|
||||||
|
get_url:
|
||||||
|
url: '{{asset.browser_download_url}}'
|
||||||
|
dest: '{{archive_path}}'
|
||||||
|
|
||||||
|
- name: create package directory
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
path: '/usr/local/lib/{{package_name}}'
|
||||||
|
state: directory
|
||||||
|
|
||||||
|
# TODO: don't extract when not actually doing a n update
|
||||||
|
- name: extract release archive
|
||||||
|
become: true
|
||||||
|
unarchive:
|
||||||
|
src: '{{archive_path}}'
|
||||||
|
dest: '/usr/local/lib/{{package_name}}'
|
||||||
|
extra_opts: ['--strip-components', '1']
|
||||||
|
|
||||||
|
- name: create symlinks from /usr/local/lib/{package_name}} to /usr/local/bin
|
||||||
|
become: true
|
||||||
|
file:
|
||||||
|
src: '{{item}}'
|
||||||
|
dest: '/usr/local/bin/{{item | basename}}'
|
||||||
|
state: link
|
||||||
|
with_fileglob: '/usr/local/lib/{{package_name}}/bin/*'
|
||||||
|
|
||||||
|
# TODO: cleanup old installs?
|
||||||
@@ -1,66 +0,0 @@
|
|||||||
---
|
|
||||||
- name: get latest stable github release
|
|
||||||
uri:
|
|
||||||
url: https://api.github.com/repos/llvm/llvm-project/releases/latest
|
|
||||||
register: llvm_latest
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
llvm_major_version:
|
|
||||||
'{{llvm_latest.json.tag_name[8:llvm_latest.json.tag_name.find(".")]}}'
|
|
||||||
- set_fact:
|
|
||||||
llvm_apt_repo_url:
|
|
||||||
'http://apt.llvm.org/{{ansible_distribution_release}}/'
|
|
||||||
llvm_apt_category:
|
|
||||||
'llvm-toolchain-{{ansible_distribution_release}}-{{llvm_major_version}}'
|
|
||||||
|
|
||||||
- name: add upstream deb repository
|
|
||||||
become: true
|
|
||||||
apt_repository:
|
|
||||||
repo: 'deb {{llvm_apt_repo_url}} {{llvm_apt_category}} main'
|
|
||||||
state: present
|
|
||||||
filename: llvm
|
|
||||||
update_cache: false
|
|
||||||
|
|
||||||
- name: add upstream deb-src repository
|
|
||||||
become: true
|
|
||||||
apt_repository:
|
|
||||||
repo: 'deb-src {{llvm_apt_repo_url}} {{llvm_apt_category}} main'
|
|
||||||
state: present
|
|
||||||
filename: llvm
|
|
||||||
update_cache: false
|
|
||||||
|
|
||||||
- name: add apt repository key
|
|
||||||
become: true
|
|
||||||
apt_key:
|
|
||||||
url: https://apt.llvm.org/llvm-snapshot.gpg.key
|
|
||||||
id: 6084F3CF814B57C1CF12EFD515CF4D18AF4F7421
|
|
||||||
state: present
|
|
||||||
|
|
||||||
- name: update apt cache
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
update_cache: true
|
|
||||||
|
|
||||||
- name: install apt packages
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name:
|
|
||||||
- clang-{{llvm_major_version}}
|
|
||||||
- clang-format-{{llvm_major_version}}
|
|
||||||
- clang-tidy-{{llvm_major_version}}
|
|
||||||
- clang-tools-{{llvm_major_version}}
|
|
||||||
- clangd-{{llvm_major_version}}
|
|
||||||
- llvm-{{llvm_major_version}}
|
|
||||||
state: latest
|
|
||||||
install_recommends: true
|
|
||||||
|
|
||||||
- name: update alternatives
|
|
||||||
become: true
|
|
||||||
alternatives:
|
|
||||||
link: '/usr/bin/{{item}}'
|
|
||||||
name: '{{item}}'
|
|
||||||
path: '/usr/bin/{{item}}-{{llvm_major_version}}'
|
|
||||||
priority: '{{llvm_major_version}}0'
|
|
||||||
with_items:
|
|
||||||
- clang-format
|
|
||||||
- clangd
|
|
||||||
@@ -1,5 +1,2 @@
|
|||||||
---
|
---
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
- include_tasks: '{{ansible_os_family}}.yaml'
|
||||||
when: ansible_os_family in ['Darwin', 'Windows']
|
|
||||||
- include_tasks: '{{ansible_distribution}}.yaml'
|
|
||||||
when: ansible_os_family not in ['Darwin', 'Windows']
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: moonlight-qt
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -4,4 +4,4 @@
|
|||||||
name: neovim
|
name: neovim
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- include_tasks: Unix.yaml
|
- include_tasks: unix.yaml
|
||||||
|
|||||||
@@ -5,4 +5,4 @@
|
|||||||
name: neovim
|
name: neovim
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- include_tasks: Unix.yaml
|
- include_tasks: unix.yaml
|
||||||
|
|||||||
@@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
- name: clone plugin repos
|
|
||||||
git:
|
|
||||||
repo: 'https://github.com/{{item.repo}}.git'
|
|
||||||
dest: '{{plugin_dir}}/{{item.mode | default("start")}}/{{item.repo | regex_replace("^.*\/(.*)$", "\1")}}'
|
|
||||||
version: '{{item.branch | default("HEAD")}}'
|
|
||||||
with_items: '{{plugins}}'
|
|
||||||
|
|
||||||
- name: get list of managed plugin paths
|
|
||||||
set_fact:
|
|
||||||
managed_plugins: >-
|
|
||||||
{{
|
|
||||||
managed_plugins | default([]) + [
|
|
||||||
plugin_dir + "/" +
|
|
||||||
item.mode | default("start") + "/" +
|
|
||||||
item.repo | regex_replace("^.*\/(.*)$", "\1")
|
|
||||||
]
|
|
||||||
}}
|
|
||||||
with_items: '{{plugins}}'
|
|
||||||
|
|
||||||
- name: find all installed plugin directories
|
|
||||||
find:
|
|
||||||
paths:
|
|
||||||
- '{{plugin_dir}}/start'
|
|
||||||
- '{{plugin_dir}}/opt'
|
|
||||||
file_type: directory
|
|
||||||
register: found_plugins
|
|
||||||
|
|
||||||
- name: remove found plugins which are not in the managed list
|
|
||||||
file:
|
|
||||||
path: '{{item.path}}'
|
|
||||||
state: absent
|
|
||||||
with_items: '{{found_plugins.files}}'
|
|
||||||
when: item.path not in managed_plugins
|
|
||||||
loop_control:
|
|
||||||
label: '{{item.path}}'
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
---
|
|
||||||
- set_fact:
|
|
||||||
vim_config_dir: '{{ansible_env.HOME}}/.config/nvim'
|
|
||||||
|
|
||||||
- name: clone config repo
|
|
||||||
git:
|
|
||||||
repo: git@code.infektor.net:config/vim.git
|
|
||||||
dest: '{{vim_config_dir}}'
|
|
||||||
version: master
|
|
||||||
|
|
||||||
# TODO: - name: set repo email
|
|
||||||
|
|
||||||
- name: install pip packages
|
|
||||||
pip:
|
|
||||||
name: '{{neovim_pip_packages}}'
|
|
||||||
state: latest
|
|
||||||
extra_args: --user
|
|
||||||
|
|
||||||
- name: check for config repo tasks.yaml
|
|
||||||
stat:
|
|
||||||
path: '{{vim_config_dir}}/tasks.yaml'
|
|
||||||
register: config_repo_tasks
|
|
||||||
|
|
||||||
- when: config_repo_tasks.stat.exists
|
|
||||||
include_tasks: '{{vim_config_dir}}/tasks.yaml'
|
|
||||||
|
|
||||||
- when: plugin_dir is defined and plugins is defined
|
|
||||||
include_tasks: 'Unix-plugins.yaml'
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
---
|
|
||||||
- name: clone plugin repos
|
|
||||||
win_git:
|
|
||||||
repo: 'https://github.com/{{item.repo}}.git'
|
|
||||||
dest: '{{plugin_dir}}/{{item.mode | default("start")}}/{{item.repo | regex_replace("^.*\/(.*)$", "\1")}}'
|
|
||||||
branch: '{{item.branch | default("HEAD")}}'
|
|
||||||
with_items: '{{plugins}}'
|
|
||||||
|
|
||||||
- name: get list of managed plugin paths
|
|
||||||
set_fact:
|
|
||||||
managed_plugins: >-
|
|
||||||
{{
|
|
||||||
managed_plugins | default([]) + [
|
|
||||||
plugin_dir + "/" +
|
|
||||||
item.mode | default("start") + "/" +
|
|
||||||
item.repo | regex_replace("^.*\/(.*)$", "\1")
|
|
||||||
]
|
|
||||||
}}
|
|
||||||
with_items: '{{plugins}}'
|
|
||||||
|
|
||||||
- name: find all start plugin directories
|
|
||||||
win_find:
|
|
||||||
paths:
|
|
||||||
- '{{plugin_dir}}/start'
|
|
||||||
- '{{plugin_dir}}/opt'
|
|
||||||
file_type: directory
|
|
||||||
register: found_plugins
|
|
||||||
|
|
||||||
- name: remove found plugins which are not in the managed list
|
|
||||||
win_file:
|
|
||||||
path: '{{item.path}}'
|
|
||||||
state: absent
|
|
||||||
with_items: '{{found_plugins.files}}'
|
|
||||||
when: item.path not in managed_plugins
|
|
||||||
loop_control:
|
|
||||||
label: '{{item.path}}'
|
|
||||||
@@ -1,27 +1,14 @@
|
|||||||
---
|
---
|
||||||
|
- name: install choco packages
|
||||||
- name: install chocolatey packages
|
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: neovim
|
name: neovim
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
vim_config_dir: '{{ansible_env.LOCALAPPDATA}}\nvim'
|
|
||||||
|
|
||||||
- name: clone config repo
|
- name: clone config repo
|
||||||
win_git:
|
win_git:
|
||||||
repo: git@code.infektor.net:config/vim.git
|
repo: git@code.infektor.net:config/vim.git
|
||||||
dest: '{{vim_config_dir}}'
|
dest: '{{ansible_env.LOCALAPPDATA}}/nvim'
|
||||||
branch: master
|
version: master
|
||||||
# clone: false
|
|
||||||
update: true
|
|
||||||
- win_owner:
|
|
||||||
path: '{{vim_config_dir}}'
|
|
||||||
user: Benie
|
|
||||||
recurse: true
|
|
||||||
|
|
||||||
- assert:
|
|
||||||
that: False
|
|
||||||
|
|
||||||
# - TODO: neovim set repo email
|
# - TODO: neovim set repo email
|
||||||
# win_git_config:
|
# win_git_config:
|
||||||
@@ -36,27 +23,3 @@
|
|||||||
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/nvim-qt.lnk'
|
dest: '{{ansible_env.ProgramData}}/Microsoft/Windows/Start Menu/Programs/nvim-qt.lnk'
|
||||||
icon: '{{ansible_env.ChocolateyToolsLocation}}/neovim/nvim-win64/bin/nvim-qt.exe,0'
|
icon: '{{ansible_env.ChocolateyToolsLocation}}/neovim/nvim-win64/bin/nvim-qt.exe,0'
|
||||||
directory: '{{ansible_env.USERPROFILE}}'
|
directory: '{{ansible_env.USERPROFILE}}'
|
||||||
|
|
||||||
- name: check for config repo tasks.yaml
|
|
||||||
win_stat:
|
|
||||||
path: '{{vim_config_dir}}/tasks.yaml'
|
|
||||||
register: config_repo_tasks
|
|
||||||
|
|
||||||
# TODO: this doesn't work for non localhost setups
|
|
||||||
# probably need to copy the tasks.yaml and plugins.yaml to the controller in a
|
|
||||||
# temporary directory then include them
|
|
||||||
- when: config_repo_tasks.stat.exists
|
|
||||||
fetch:
|
|
||||||
src: '{{vim_config_dir}}/tasks.yaml'
|
|
||||||
dest: vim_config_tasks.yaml
|
|
||||||
flat: true
|
|
||||||
|
|
||||||
- when: config_repo_tasks.stat.exists
|
|
||||||
include_tasks: vim_config_tasks.yaml
|
|
||||||
|
|
||||||
- when: ansible_os_family != "Windows" and
|
|
||||||
plugin_dir is defined and plugins is defined
|
|
||||||
include_tasks: 'Unix-plugins.yaml'
|
|
||||||
- when: ansible_os_family == "Windows" and
|
|
||||||
plugin_dir is defined and plugins is defined
|
|
||||||
include_tasks: 'Windows-plugins.yaml'
|
|
||||||
|
|||||||
14
roles/neovim/tasks/unix.yaml
Normal file
14
roles/neovim/tasks/unix.yaml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
- name: clone config repo
|
||||||
|
git:
|
||||||
|
repo: git@code.infektor.net:config/vim.git
|
||||||
|
dest: ~/.config/nvim
|
||||||
|
version: master
|
||||||
|
|
||||||
|
# TODO: - name: set repo email
|
||||||
|
|
||||||
|
- name: install pip packages
|
||||||
|
pip:
|
||||||
|
name: '{{neovim_pip_packages}}'
|
||||||
|
state: latest
|
||||||
|
extra_args: --user
|
||||||
@@ -7,22 +7,22 @@
|
|||||||
- name: create directory for downloaded package
|
- name: create directory for downloaded package
|
||||||
file:
|
file:
|
||||||
state: directory
|
state: directory
|
||||||
dest: ~/.local/src/node
|
dest: ~/.local/src
|
||||||
|
|
||||||
- name: download latest package
|
- name: download latest package
|
||||||
get_url:
|
get_url:
|
||||||
url: 'https://nodejs.org/dist/{{latest.json[0].version}}/node-{{latest.json[0].version}}-linux-x64.tar.gz'
|
url: 'https://nodejs.org/dist/{{latest.json[0].version}}/node-{{latest.json[0].version}}-linux-x64.tar.gz'
|
||||||
dest: ~/.local/src/node/node.tar.gz
|
dest: ~/.local/src/node.tar.gz
|
||||||
|
|
||||||
- name: extract downloaded package
|
- name: extract downloaded package
|
||||||
unarchive:
|
unarchive:
|
||||||
src: ~/.local/src/node/node.tar.gz
|
src: ~/.local/src/node.tar.gz
|
||||||
dest: ~/.local/src/node
|
dest: ~/.local/src
|
||||||
remote_src: true
|
remote_src: true
|
||||||
|
|
||||||
- name: create symbolic links
|
- name: create symlink links
|
||||||
file:
|
file:
|
||||||
state: link
|
state: link
|
||||||
src: '~/.local/src/node/node-{{latest.json[0].version}}-linux-x64/bin/{{item}}'
|
src: '~/.local/src/node-{{latest.json[0].version}}-linux-x64/bin/{{item}}'
|
||||||
dest: '~/.local/bin/{{item}}'
|
dest: '~/.local/bin/{{item}}'
|
||||||
with_items: [corepack, node, npm, npx]
|
with_items: [corepack, node, npm, npx]
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: install choco package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: nodejs
|
name: nodejs
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
---
|
|
||||||
- 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
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
- set_fact:
|
|
||||||
obsidian_notes_repo: '{{ansible_env.USERPROFILE}}/Documents/Notes'
|
|
||||||
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: obsidian
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: clone notes repository
|
|
||||||
win_git:
|
|
||||||
repo: git@github.com:kbenzie/notes.git
|
|
||||||
dest: '{{obsidian_notes_repo}}'
|
|
||||||
branch: main
|
|
||||||
- win_owner:
|
|
||||||
path: '{{obsidian_notes_repo}}'
|
|
||||||
user: Benie
|
|
||||||
recurse: true
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -1,44 +1,16 @@
|
|||||||
---
|
---
|
||||||
- set_fact:
|
|
||||||
powershell_config_dir:
|
|
||||||
'{{ansible_env.USERPROFILE}}/Documents/WindowsPowerShell'
|
|
||||||
|
|
||||||
- name: clone config repos
|
- name: clone config repos
|
||||||
win_git:
|
win_git:
|
||||||
repo: git@code.infektor.net:config/WindowsPowerShell.git
|
repo: git@code.infektor.net:config/WindowsPowerShell.git
|
||||||
dest: '{{powershell_config_dir}}'
|
dest: '{{ansible_env.USERPROFILE}}/Documents/WindowsPowerShell'
|
||||||
branch: master
|
branch: master
|
||||||
- win_owner:
|
|
||||||
path: '{{powershell_config_dir}}'
|
|
||||||
user: Benie
|
|
||||||
recurse: true
|
|
||||||
|
|
||||||
- name: install chocolatey package
|
- name: install chocolatey package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: Cmder
|
name: Cmder
|
||||||
state: latest
|
state: latest
|
||||||
|
|
||||||
- name: get NuGet package provider
|
|
||||||
ansible.windows.win_powershell:
|
|
||||||
script:
|
|
||||||
Get-PackageProvider -Name NuGet
|
|
||||||
changed_when: false
|
|
||||||
register: nuget_package_provider
|
|
||||||
|
|
||||||
- name: install NuGet package provider
|
|
||||||
when: nuget_package_provider.error | length > 0
|
|
||||||
ansible.windows.win_powershell:
|
|
||||||
script: |
|
|
||||||
Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
|
|
||||||
|
|
||||||
- name: install PsReadline module
|
- name: install PsReadline module
|
||||||
win_psmodule:
|
win_psmodule:
|
||||||
name: PsReadline
|
name: PsReadline
|
||||||
state: latest
|
state: latest
|
||||||
accept_license: true
|
|
||||||
|
|
||||||
- name: install posh-git module
|
|
||||||
win_psmodule:
|
|
||||||
name: posh-git
|
|
||||||
state: latest
|
|
||||||
accept_license: true
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- assert:
|
|
||||||
that: ansible_os_family == 'Windows'
|
|
||||||
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: powertoys
|
|
||||||
state: present
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
---
|
|
||||||
- assert:
|
|
||||||
that: ansible_os_family == "Windows"
|
|
||||||
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: prusaslicer
|
|
||||||
state: latest
|
|
||||||
@@ -3,8 +3,7 @@
|
|||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- python-is-python3
|
|
||||||
- python3
|
- python3
|
||||||
- python3-pip
|
- python3-pip
|
||||||
- python3-venv
|
|
||||||
- python3-virtualenv
|
- python3-virtualenv
|
||||||
|
- python-is-python3
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: create .inputrc config file
|
|
||||||
template:
|
|
||||||
src: inputrc
|
|
||||||
dest: '{{ansible_env.HOME}}/.inputrc'
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
# Enable vi mode
|
|
||||||
set editing-mode vi
|
|
||||||
|
|
||||||
# Insert mode mappings
|
|
||||||
set keymap vi-insert
|
|
||||||
"\C-[": vi-movement-mode
|
|
||||||
|
|
||||||
# Change cursor shape on vi mode change
|
|
||||||
set show-mode-in-prompt on
|
|
||||||
set vi-cmd-mode-string "\1\e[2 q\2"
|
|
||||||
set vi-ins-mode-string "\1\e[6 q\2"
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
- assert:
|
|
||||||
that: ansible_user_id != "root"
|
|
||||||
|
|
||||||
- name: create /etc/sudoers.d/{user} config file
|
|
||||||
become: true
|
|
||||||
template:
|
|
||||||
src: sudoers
|
|
||||||
dest: '/etc/sudoers.d/{{ansible_user_id}}'
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0440'
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
{{ansible_user_id}} ALL=(ALL) NOPASSWD:ALL
|
|
||||||
@@ -1,25 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: install apt packages
|
# TODO:
|
||||||
become: true
|
# cp $script_dir/system-info.service ~/.config/systemd/user/system-info.service
|
||||||
apt:
|
# systemctl --user enable system-info
|
||||||
name:
|
# systemctl --user start system-info
|
||||||
- gawk
|
|
||||||
- sysstat
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: create systemd user unit directory
|
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
dest: ~/.config/systemd/user
|
|
||||||
|
|
||||||
- name: install system-info systemd unit
|
|
||||||
copy:
|
|
||||||
src: ~/.config/tmux/system-info/system-info.service
|
|
||||||
dest: ~/.config/systemd/user/system-info.service
|
|
||||||
|
|
||||||
- name: enable system-info service
|
|
||||||
systemd:
|
|
||||||
name: system-info
|
|
||||||
scope: user
|
|
||||||
enabled: true
|
|
||||||
state: started
|
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: tidy-html5
|
|
||||||
state: latest
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: tidy
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -9,4 +9,31 @@
|
|||||||
|
|
||||||
# TODO: - name: set repo email
|
# TODO: - name: set repo email
|
||||||
|
|
||||||
- include_tasks: ~/.config/tmux/tasks.yaml
|
- name: create layouts directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
dest: ~/.local/share/tmux/layouts
|
||||||
|
|
||||||
|
- name: create symbolic links
|
||||||
|
file:
|
||||||
|
state: link
|
||||||
|
src: '{{item.src}}'
|
||||||
|
dest: '{{item.dest}}'
|
||||||
|
with_items:
|
||||||
|
- src: ~/.config/tmux/tmux.conf
|
||||||
|
dest: ~/.tmux.conf
|
||||||
|
- src: ~/.config/tmux/layouts/session-main
|
||||||
|
dest: ~/.local/share/tmux/layouts/session-main
|
||||||
|
- src: ~/.config/tmux/layouts/window-tall
|
||||||
|
dest: ~/.local/share/tmux/layouts/window-tall
|
||||||
|
- src: ~/.config/tmux/layouts/window-wide-left
|
||||||
|
dest: ~/.local/share/tmux/layouts/window-wide-left
|
||||||
|
- src: ~/.config/tmux/layouts/window-wide-right
|
||||||
|
dest: ~/.local/share/tmux/layouts/window-wide-right
|
||||||
|
|
||||||
|
# TODO: - name: Enable tmux system-info service
|
||||||
|
# command: system-info/install.sh
|
||||||
|
|
||||||
|
# TODO: WSL2 system-info
|
||||||
|
# when: '"WSL" in ansible_kernel'
|
||||||
|
# figure out best way to run daemon...
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
- name: install chocolatey package
|
- name: install choco package
|
||||||
win_chocolatey:
|
win_chocolatey:
|
||||||
name: tree
|
name: tree
|
||||||
state: latest
|
state: latest
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: wget
|
|
||||||
state: latest
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install apt package
|
|
||||||
apt:
|
|
||||||
name: wget
|
|
||||||
state: latest
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
|
|
||||||
- name: create directories
|
|
||||||
file:
|
|
||||||
state: directory
|
|
||||||
dest: '{{item}}'
|
|
||||||
with_items:
|
|
||||||
- ~/.config/wget
|
|
||||||
- ~/.cache/wget
|
|
||||||
|
|
||||||
- name: create config file
|
|
||||||
copy:
|
|
||||||
content: |
|
|
||||||
hsts-file = {{ansible_env.HOME}}/.cache/wget/hsts
|
|
||||||
dest: ~/.config/wget/rc
|
|
||||||
@@ -1,38 +1,17 @@
|
|||||||
---
|
---
|
||||||
- name: install apt packages
|
|
||||||
become: true
|
|
||||||
apt:
|
|
||||||
name: sshpass
|
|
||||||
state: latest
|
|
||||||
|
|
||||||
- name: create /etc/ansible
|
|
||||||
become: true
|
|
||||||
file:
|
|
||||||
dest: /etc/ansible
|
|
||||||
state: directory
|
|
||||||
|
|
||||||
- name: create hosts file
|
|
||||||
become: true
|
|
||||||
template:
|
|
||||||
src: templates/hosts.j2
|
|
||||||
dest: /etc/ansible/hosts
|
|
||||||
|
|
||||||
- name: create external directory
|
- name: create external directory
|
||||||
file:
|
file:
|
||||||
dest: external
|
dest: external
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: clone ansible win_git module
|
- name: clone ansible win_git module
|
||||||
git:
|
git:
|
||||||
repo: https://github.com/tivrobo/ansible-win_git.git
|
repo: https://github.com/tivrobo/ansible-win_git.git
|
||||||
dest: external/ansible-win_git
|
dest: external/ansible-win_git
|
||||||
version: master
|
version: master
|
||||||
|
|
||||||
- name: create ansible modules directory
|
- name: create ansible modules directory
|
||||||
file:
|
file:
|
||||||
dest: ~/.ansible/plugins/modules
|
dest: ~/.ansible/plugins/modules
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: copy win_git files to ansible modules directory
|
- name: copy win_git files to ansible modules directory
|
||||||
copy:
|
copy:
|
||||||
src: '~/.config/local/external/ansible-win_git/{{item}}'
|
src: '~/.config/local/external/ansible-win_git/{{item}}'
|
||||||
@@ -40,21 +19,3 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- win_git.ps1
|
- win_git.ps1
|
||||||
- win_git.py
|
- win_git.py
|
||||||
|
|
||||||
- name: read /etc/resolv.conf file contents
|
|
||||||
set_fact:
|
|
||||||
resolv_conf: '{{lookup("ansible.builtin.file", "/etc/resolv.conf")}}'
|
|
||||||
|
|
||||||
- name: get Windows host IP from /etc/resolv.conf
|
|
||||||
set_fact:
|
|
||||||
host_ip: '{{resolv_conf | regex_search("(\d+\.\d+\.\d+\.\d+)")}}'
|
|
||||||
|
|
||||||
- name: add $(hostname).local to /etc/hosts
|
|
||||||
become: true
|
|
||||||
lineinfile:
|
|
||||||
path: /etc/hosts
|
|
||||||
regexp: '^{{host_ip | replace(".", "\.")}}'
|
|
||||||
line: '{{host_ip}} {{ansible_hostname}}.local'
|
|
||||||
owner: root
|
|
||||||
group: root
|
|
||||||
mode: '0644'
|
|
||||||
|
|||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
all:
|
|
||||||
children:
|
|
||||||
windows:
|
|
||||||
hosts:
|
|
||||||
{{ansible_hostname}}.local:
|
|
||||||
ansible_user: {{ansible_user_id}}
|
|
||||||
ansible_connection: ssh
|
|
||||||
ansible_shell_type: cmd
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install homebrew package
|
|
||||||
homebrew:
|
|
||||||
name: yq
|
|
||||||
state: latest
|
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
- name: get latest github release
|
|
||||||
uri:
|
|
||||||
url: https://api.github.com/repos/mikefarah/yq/releases/latest
|
|
||||||
register: latest
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
asset_query: '[?contains(name, `yq_linux_amd64`)] | [0]'
|
|
||||||
assets: '{{latest.json.assets}}'
|
|
||||||
latest_version: '{{latest.json.tag_name[1:]}}'
|
|
||||||
yq_exe: '{{ansible_env.HOME}}/.local/bin/yq'
|
|
||||||
|
|
||||||
- name: check if already installed
|
|
||||||
stat:
|
|
||||||
path: '{{yq_exe}}'
|
|
||||||
register: yq_stat
|
|
||||||
|
|
||||||
- name: get installed version
|
|
||||||
when: yq_stat.stat.exists == True
|
|
||||||
command: '{{yq_exe}} --version'
|
|
||||||
register: yq_version_output
|
|
||||||
changed_when: false
|
|
||||||
|
|
||||||
- when: yq_stat.stat.exists == True
|
|
||||||
set_fact:
|
|
||||||
installed_version:
|
|
||||||
'{{yq_version_output.stdout.strip() | regex_replace("^.*(\d+\.\d+\.\d+).*$", "\1")}}'
|
|
||||||
|
|
||||||
- set_fact:
|
|
||||||
asset: '{{assets | to_json | from_json | json_query(asset_query)}}'
|
|
||||||
|
|
||||||
- name: download executable
|
|
||||||
when: installed_version is not defined or installed_version != latest_version
|
|
||||||
get_url:
|
|
||||||
url: '{{asset.browser_download_url}}'
|
|
||||||
dest: '{{yq_exe}}'
|
|
||||||
mode: +x
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
- name: install chocolatey package
|
|
||||||
win_chocolatey:
|
|
||||||
name: yq
|
|
||||||
state: latest
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
- include_tasks: '{{ansible_os_family}}.yaml'
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
---
|
---
|
||||||
- name: install fzf binaries
|
- name: install fzf binaries
|
||||||
command:
|
command:
|
||||||
cmd: ~/.local/src/fzf/install --bin
|
cmd: ~/.config/zsh/fzf/install --bin
|
||||||
@@ -20,8 +20,13 @@
|
|||||||
dest: ~/.config/zsh/zsh-syntax-highlighting
|
dest: ~/.config/zsh/zsh-syntax-highlighting
|
||||||
- repo: https://github.com/zsh-users/zsh-completions.git
|
- repo: https://github.com/zsh-users/zsh-completions.git
|
||||||
dest: ~/.config/zsh/zsh-completions
|
dest: ~/.config/zsh/zsh-completions
|
||||||
loop_control:
|
|
||||||
label: '{{item.repo | regex_search("https://github.com/(.*)\.git$", "\1")}}'
|
- name: clone fzf repo
|
||||||
|
git:
|
||||||
|
repo: https://github.com/junegunn/fzf.git
|
||||||
|
dest: ~/.config/zsh/fzf
|
||||||
|
notify: install fzf binaries
|
||||||
|
- meta: flush_handlers
|
||||||
|
|
||||||
- name: create directories
|
- name: create directories
|
||||||
file:
|
file:
|
||||||
@@ -57,12 +62,14 @@
|
|||||||
dest: ~/.local/share/zsh/site-functions/_layout
|
dest: ~/.local/share/zsh/site-functions/_layout
|
||||||
- src: ~/.config/zsh/notes/_note
|
- src: ~/.config/zsh/notes/_note
|
||||||
dest: ~/.local/share/zsh/site-functions/_note
|
dest: ~/.local/share/zsh/site-functions/_note
|
||||||
|
- src: ~/.config/zsh/fzf/bin/fzf
|
||||||
|
dest: ~/.local/bin/fzf
|
||||||
|
- src: ~/.config/zsh/fzf/bin/fzf-tmux
|
||||||
|
dest: ~/.local/bin/fzf-tmux
|
||||||
- src: ~/.config/zsh/cmake-uninstall
|
- src: ~/.config/zsh/cmake-uninstall
|
||||||
dest: ~/.local/bin/cmake-uninstall
|
dest: ~/.local/bin/cmake-uninstall
|
||||||
- src: ~/.config/zsh/$
|
- src: ~/.config/zsh/$
|
||||||
dest: ~/.local/bin/$
|
dest: ~/.local/bin/$
|
||||||
loop_control:
|
|
||||||
label: '{{item.dest}}'
|
|
||||||
|
|
||||||
- name: get absolute path
|
- name: get absolute path
|
||||||
shell: command -v zsh
|
shell: command -v zsh
|
||||||
@@ -71,6 +78,6 @@
|
|||||||
|
|
||||||
- name: set default shell
|
- name: set default shell
|
||||||
user:
|
user:
|
||||||
name: '{{ansible_user_id}}'
|
name: '{{lookup("env", "USER")}}'
|
||||||
shell: '{{zsh.stdout}}'
|
shell: '{{zsh.stdout}}'
|
||||||
become: true
|
become: true
|
||||||
|
|||||||
17
unix.yaml
Normal file
17
unix.yaml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: zsh
|
||||||
|
- role: neovim
|
||||||
|
- role: tmux
|
||||||
|
- role: system-info
|
||||||
|
|
||||||
|
- role: ag
|
||||||
|
- role: bat
|
||||||
|
- role: git
|
||||||
|
- role: tree
|
||||||
|
|
||||||
|
- role: llvm
|
||||||
|
- role: nodejs
|
||||||
|
- role: python
|
||||||
29
windows.yaml
Normal file
29
windows.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
---
|
||||||
|
- import_playbook: unix.yaml
|
||||||
|
|
||||||
|
- hosts: localhost
|
||||||
|
|
||||||
|
# FIXME: Roles which depend on the win_git module can't be in the same
|
||||||
|
# playbook on the first run because the wsl role hasn't added the win_git
|
||||||
|
# module to the modules path yet.
|
||||||
|
roles:
|
||||||
|
- role: wsl
|
||||||
|
|
||||||
|
- hosts: windows
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- role: powershell
|
||||||
|
- role: neovim
|
||||||
|
- role: system-info
|
||||||
|
|
||||||
|
- role: ag
|
||||||
|
- role: git
|
||||||
|
- role: tree
|
||||||
|
|
||||||
|
- role: llvm
|
||||||
|
- role: nodejs
|
||||||
|
- role: python
|
||||||
|
|
||||||
|
- role: 1password
|
||||||
|
- role: autohotkey
|
||||||
|
- role: firefox
|
||||||
Reference in New Issue
Block a user