updated tasks so they are only run once
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
|
||||
- name: Add air
|
||||
when:
|
||||
- air_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/air-verse/air@latest'] }}"
|
||||
|
||||
- name: Set air_configured
|
||||
ansible.builtin.set_fact:
|
||||
air_configured: true
|
||||
|
||||
@@ -1,19 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Linux based installation
|
||||
- name: Add alacritty
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- alacritty_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
|
||||
- name: Load alacritty configuration
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/alacritty.yml
|
||||
|
||||
- name: Append alacritty to caskpkgs
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + alacritty.cask }}"
|
||||
- name: Linux based installation
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + alacritty.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [alacritty] }}"
|
||||
|
||||
- name: Append alacritty to caskpkgs
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + alacritty.cask }}"
|
||||
|
||||
- name: Set alacritty_configured
|
||||
ansible.builtin.set_fact:
|
||||
alacritty_configured: true
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
|
||||
- name: Add ansible_lint
|
||||
when:
|
||||
- ansible_lint_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ansible-lint'] }}"
|
||||
|
||||
- name: Set ansible_lint_configured
|
||||
ansible.builtin.set_fact:
|
||||
ansible_lint_configured: true
|
||||
|
||||
16
tasks/pkgs/ansible_ls.yml
Normal file
16
tasks/pkgs/ansible_ls.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add ansible_ls
|
||||
when:
|
||||
- ansible_ls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@ansible/ansible-language-server'] }}"
|
||||
|
||||
- name: Set ansible_ls_configured
|
||||
ansible.builtin.set_fact:
|
||||
ansible_ls_configured: true
|
||||
@@ -1,13 +1,29 @@
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ aquamarine.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: pkg_dep
|
||||
vars:
|
||||
pkg: "{{ pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add aquamarine
|
||||
when:
|
||||
- aquamarine_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland config
|
||||
when:
|
||||
- aquamarine is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/aquamarine.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['aquamarine'] }}"
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ aquamarine.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: aquamarine_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ aquamarine_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ aquamarine_pkg_dep }}.yml"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + aquamarine.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['aquamarine'] }}"
|
||||
|
||||
- name: Set aquamarine_configured
|
||||
ansible.builtin.set_fact:
|
||||
aquamarine_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
|
||||
- name: Add bashls
|
||||
when:
|
||||
- bashls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['bash-language-server'] }}"
|
||||
|
||||
- name: Set bashls_configured
|
||||
ansible.builtin.set_fact:
|
||||
bashls_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['bat'] }}"
|
||||
- name: Add bat
|
||||
when:
|
||||
- bat_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['bat'] }}"
|
||||
|
||||
- name: Set bat_configured
|
||||
ansible.builtin.set_fact:
|
||||
bat_configured: true
|
||||
|
||||
@@ -1,22 +1,34 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add bitwarden
|
||||
when:
|
||||
- bitwarden.method == 'flatpak'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
|
||||
- bitwarden_configured is undefined
|
||||
block:
|
||||
- name: Load bitwarden config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/bitwarden.yml
|
||||
|
||||
- name: Append to pkg_appimage
|
||||
when:
|
||||
- bitwarden.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}"
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- bitwarden.method == 'flatpak'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [bitwarden.pkg] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- bitwarden.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [bitwarden] }}"
|
||||
- name: Append to pkg_appimage
|
||||
when:
|
||||
- bitwarden.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + [bitwarden.pkg] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- bitwarden.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [bitwarden] }}"
|
||||
|
||||
- name: Set bitwarden_configured
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden_configured: true
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add blender
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['blender'] }}"
|
||||
- blender_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['blender'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['blender'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['blender'] }}"
|
||||
|
||||
- name: Set bitwarden_configured
|
||||
ansible.builtin.set_fact:
|
||||
bitwarden_configured: true
|
||||
|
||||
@@ -1,17 +1,29 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys and pkg_cargo
|
||||
- name: Add broot
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + broot.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [broot] }}"
|
||||
- broot_configured is undefined
|
||||
block:
|
||||
- name: Load broot config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/broot.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['broot'] }}"
|
||||
- name: Append to pkg_sys and pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + broot.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [broot] }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['broot'] }}"
|
||||
|
||||
- name: Set broot_configured
|
||||
ansible.builtin.set_fact:
|
||||
broot_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_ssys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['btop'] }}"
|
||||
- name: Add btop
|
||||
when:
|
||||
- btop_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_ssys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['btop'] }}"
|
||||
|
||||
- name: Set broot_configured
|
||||
ansible.builtin.set_fact:
|
||||
broot_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
|
||||
- name: Add buf
|
||||
when:
|
||||
- buf_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf/cmd/buf@latest'] }}"
|
||||
|
||||
- name: Set buf_configured
|
||||
ansible.builtin.set_fact:
|
||||
buf_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
||||
- name: Add bufls
|
||||
when:
|
||||
- bufls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/bufbuild/buf-language-server/cmd/bufls@latest'] }}"
|
||||
|
||||
- name: Set bufls_configured
|
||||
ansible.builtin.set_fact:
|
||||
bufls_configured: true
|
||||
|
||||
@@ -1,27 +1,39 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Enable carapace yum repository
|
||||
- name: Add carapace
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
become: true
|
||||
ansible.builtin.yum_repository:
|
||||
name: "{{ carapace.repo.name }}"
|
||||
description: "{{ carapace.repo.description }}"
|
||||
baseurl: "{{ carapace.repo.baseurl }}"
|
||||
enabled: true
|
||||
gpgcheck: false
|
||||
state: present
|
||||
- carapace_configured is undefined
|
||||
block:
|
||||
- name: Load carapace config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/carapace.yml
|
||||
|
||||
- name: Enable carapace apt repository
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "{{ carapace.repo.repo }}"
|
||||
filename: "{{ carapace.repo.name }}"
|
||||
state: present
|
||||
update_cache: false
|
||||
- name: Enable carapace yum repository
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
become: true
|
||||
ansible.builtin.yum_repository:
|
||||
name: "{{ carapace.repo.name }}"
|
||||
description: "{{ carapace.repo.description }}"
|
||||
baseurl: "{{ carapace.repo.baseurl }}"
|
||||
enabled: true
|
||||
gpgcheck: false
|
||||
state: present
|
||||
|
||||
- name: Add carapace to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + carapace.pkgs }}"
|
||||
- name: Enable carapace apt repository
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
become: true
|
||||
ansible.builtin.apt_repository:
|
||||
repo: "{{ carapace.repo.repo }}"
|
||||
filename: "{{ carapace.repo.name }}"
|
||||
state: present
|
||||
update_cache: false
|
||||
|
||||
- name: Add carapace to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + carapace.pkgs }}"
|
||||
|
||||
- name: Set carapace_configured
|
||||
ansible.builtin.set_fact:
|
||||
carapace_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"
|
||||
- name: Add cheat
|
||||
when:
|
||||
- cheat_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/cheat/cheat/cmd/cheat@latest'] }}"
|
||||
|
||||
- name: Set cheat_configured
|
||||
ansible.builtin.set_fact:
|
||||
cheat_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
|
||||
- name: Add checkmake
|
||||
when:
|
||||
- checkmake_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mrtazz/checkmake/cmd/checkmake@latest'] }}"
|
||||
|
||||
- name: Set checkmake_configured
|
||||
ansible.builtin.set_fact:
|
||||
checkmake_configured: true
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to cargopkgs
|
||||
- name: Add choose
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
||||
- choose_configured is undefined
|
||||
block:
|
||||
- name: Load choose config
|
||||
ansible.builtin.include_task:
|
||||
file: config/choose.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
|
||||
- name: Append to cargopkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose] }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
|
||||
|
||||
- name: Set choose_configured
|
||||
ansible.builtin.set_fact:
|
||||
choose_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append clangd to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + clangd.pkgs }}"
|
||||
- name: Add clangd
|
||||
when:
|
||||
- clangd_configured is undefined
|
||||
block:
|
||||
- name: Load clangd config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/clangd.yml
|
||||
|
||||
- name: Append clangd to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + clangd.pkgs }}"
|
||||
|
||||
- name: Set clangd_configured
|
||||
ansible.builtin.set_fact:
|
||||
clangd_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['cmake'] }}"
|
||||
- name: Add cmake
|
||||
when:
|
||||
- cmake_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['cmake'] }}"
|
||||
|
||||
- name: Set cmake_configured
|
||||
ansible.builtin.set_fact:
|
||||
cmake_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend pipx
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
|
||||
- name: Add cmakelang
|
||||
when:
|
||||
- cmakelang_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend pipx
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['cmakelang'] }}"
|
||||
|
||||
- name: Set cmakelang_configured
|
||||
ansible.builtin.set_fact:
|
||||
cmakelang_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
|
||||
- name: Add commitlint-cli
|
||||
when:
|
||||
- commitlint_cli_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/cli'] }}"
|
||||
|
||||
- name: Set commitlint_cli_configured
|
||||
ansible.builtin.set_fact:
|
||||
commitlint_cli_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"
|
||||
- name: Add comitlint-config-conventional
|
||||
when:
|
||||
- comitlint_config_conventional_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@commitlint/config-conventional'] }}"
|
||||
|
||||
- name: Set comitlint_config_conventional_configured
|
||||
ansible.builtin.set_fact:
|
||||
comitlint_config_conventional_configured: true
|
||||
|
||||
@@ -1,19 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add consul
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
|
||||
- consul_configured is undefined
|
||||
block:
|
||||
- name: Load consul config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/consul.yml
|
||||
|
||||
- name: Append to pkg_tap
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + consul.pkgs }}"
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + consul.pkgs }}"
|
||||
|
||||
- name: Append to pkg_tap
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + consul.pkgs }}"
|
||||
|
||||
- name: Set consul_configured
|
||||
ansible.builtin.set_fact:
|
||||
consul_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
- name: Add cssls
|
||||
when:
|
||||
- cssls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
|
||||
- name: Set cssls_configured
|
||||
ansible.builtin.set_fact:
|
||||
cssls_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
|
||||
- name: Add curlie
|
||||
when:
|
||||
- curlie_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/rs/curlie@latest'] }}"
|
||||
|
||||
- name: Set curlie_configured
|
||||
ansible.builtin.set_fact:
|
||||
curlie_configured: true
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add dbeaver
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
|
||||
- dbeaver_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['io.dbeaver.DBeaverCommunity'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['dbeaver-community'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['dbeaver-community'] }}"
|
||||
|
||||
- name: Set dbeaver_configured
|
||||
ansible.builtin.set_fact:
|
||||
dbeaver_configured: true
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['direnv'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add direnv
|
||||
when:
|
||||
- direnv_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['direnv'] }}"
|
||||
|
||||
- name: Set direnv_configured
|
||||
ansible.builtin.set_fact:
|
||||
direnv_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"
|
||||
- name: Add dockerls
|
||||
when:
|
||||
- dockerls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['dockerfile-language-server-nodejs'] }}"
|
||||
|
||||
- name: Set dockerls_configured
|
||||
ansible.builtin.set_fact:
|
||||
dockerls_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"
|
||||
- name: Add dotenv-linter
|
||||
when:
|
||||
- dotenv_linter_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['dotenv-linter'] }}"
|
||||
|
||||
- name: Set dotenv-linter_configured
|
||||
ansible.builtin.set_fact:
|
||||
dotenv_linter_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
|
||||
- name: Add duf
|
||||
when:
|
||||
- duf_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/muesli/duf@latest'] }}"
|
||||
|
||||
- name: Set duf_configured
|
||||
ansible.builtin.set_fact:
|
||||
duf_configured: true
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Linux specific install
|
||||
- name: Add dust
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
|
||||
- dust_configured is undefined
|
||||
block:
|
||||
- name: Linux specific install
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['du-dust'] }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['dust'] }}"
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['dust'] }}"
|
||||
|
||||
- name: Set dust_configured
|
||||
ansible.builtin.set_fact:
|
||||
dust_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['editorconfig'] }}"
|
||||
- name: Add editorconfig
|
||||
when:
|
||||
- editorconfig_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['editorconfig'] }}"
|
||||
|
||||
- name: Set editorconfig_configured
|
||||
ansible.builtin.set_fact:
|
||||
editorconfig_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
- name: Add eslint
|
||||
when:
|
||||
- eslint_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
|
||||
- name: Set eslint_configured
|
||||
ansible.builtin.set_fact:
|
||||
eslint_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
|
||||
- name: Add eza
|
||||
when:
|
||||
- eza_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
|
||||
|
||||
- name: Set eza_configured
|
||||
ansible.builtin.set_fact:
|
||||
eza_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + fd.pkgs }}"
|
||||
- name: Add fd
|
||||
when:
|
||||
- fd_configured is undefined
|
||||
block:
|
||||
- name: Load fd config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/fd.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + fd.pkgs }}"
|
||||
|
||||
- name: Set fd_configured
|
||||
ansible.builtin.set_fact:
|
||||
fd_configured: true
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
- name: Add firefox
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['firefox'] }}"
|
||||
- firefox_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['firefox'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['firefox'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['firefox'] }}"
|
||||
|
||||
- name: Set firefox_configured
|
||||
ansible.builtin.set_fact:
|
||||
firefox_configured: true
|
||||
|
||||
@@ -1,7 +1,15 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['flatpak'] }}"
|
||||
- flatpak_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['flatpak'] }}"
|
||||
|
||||
- name: Set flatpak_configured
|
||||
ansible.builtin.set_fact:
|
||||
flatpak_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
|
||||
- name: Add cmake
|
||||
when:
|
||||
- cmake_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['fzf'] }}"
|
||||
|
||||
- name: Set cmake_configured
|
||||
ansible.builtin.set_fact:
|
||||
cmake_configured: true
|
||||
|
||||
@@ -1,40 +1,52 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Source pkg installation
|
||||
- name: Add ghostty
|
||||
when:
|
||||
- ghostty.method == 'src'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
- ghostty_configured is undefined
|
||||
block:
|
||||
- name: Build ghostty from source
|
||||
notify:
|
||||
- Depend zig
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
||||
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
||||
- name: Load ghostty config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/ghostty.yml
|
||||
|
||||
- name: Appimage installation
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
|
||||
|
||||
- name: Sys pkg installation
|
||||
when:
|
||||
- ghostty.method == 'sys'
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
- name: Source pkg installation
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
notify:
|
||||
- Depend terra repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
||||
- ghostty.method == 'src'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
block:
|
||||
- name: Build ghostty from source
|
||||
notify:
|
||||
- Depend zig
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
||||
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
||||
|
||||
- name: Cask pkg installation
|
||||
when:
|
||||
- ghostty.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
|
||||
- name: Appimage installation
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
- ansible_distribution != 'MacOSX'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty_vars.appimage }}"
|
||||
|
||||
- name: Sys pkg installation
|
||||
when:
|
||||
- ghostty.method == 'sys'
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
notify:
|
||||
- Depend terra repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
||||
|
||||
- name: Cask pkg installation
|
||||
when:
|
||||
- ghostty.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
|
||||
|
||||
- name: Set ghostty_configured
|
||||
ansible.builtin.set_fact:
|
||||
ghostty_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + git.pkgs }}"
|
||||
- name: Add git
|
||||
when:
|
||||
- git_configured is undefined
|
||||
block:
|
||||
- name: Load git config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/git.yml
|
||||
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + git.pkgs }}"
|
||||
|
||||
- name: Set git_configured
|
||||
ansible.builtin.set_fact:
|
||||
git_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
|
||||
- name: Add glow
|
||||
when:
|
||||
- glow_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/charmbracelet/glow@latest'] }}"
|
||||
|
||||
- name: Set glow_configured
|
||||
ansible.builtin.set_fact:
|
||||
glow_configured: true
|
||||
|
||||
@@ -1,12 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install from archive
|
||||
- name: Add go
|
||||
when:
|
||||
- go.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['go'] }}"
|
||||
- go_configured is undefined
|
||||
block:
|
||||
- name: Load go config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/go.yml
|
||||
|
||||
- name: Append to pkgs
|
||||
- go.method != 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['go'] }}"
|
||||
- name: Install from archive
|
||||
when:
|
||||
- go.method == 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['go'] }}"
|
||||
|
||||
- name: Append to pkgs
|
||||
- go.method != 'archive'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['go'] }}"
|
||||
|
||||
- name: Set go_configured
|
||||
ansible.builtin.set_fact:
|
||||
go_configured: true
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add godot
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
|
||||
- godot_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['org.godotengine.Godot'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['godot'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['godot'] }}"
|
||||
|
||||
- name: Set godot_configured
|
||||
ansible.builtin.set_fact:
|
||||
godot_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
|
||||
- name: Add gopls
|
||||
when:
|
||||
- gopls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['golang.org/x/tools/gopls@latest'] }}"
|
||||
|
||||
- name: Set gopls_configured
|
||||
ansible.builtin.set_fact:
|
||||
gopls_configured: true
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add gping
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['gping'] }}"
|
||||
- gping_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['gping'] }}"
|
||||
|
||||
- name: Append to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['gping'] }}"
|
||||
- name: Append to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['gping'] }}"
|
||||
|
||||
- name: Set gping_configured
|
||||
ansible.builtin.set_fact:
|
||||
gping_configured: true
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add heroic
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
||||
- heroic_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + ['com.heroicgameslauncher.hgl'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['heroic'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['heroic'] }}"
|
||||
|
||||
- name: Set heroic_configured
|
||||
ansible.builtin.set_fact:
|
||||
heroic_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
- name: Add htmlls
|
||||
when:
|
||||
- htmlls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
|
||||
- name: Set htmlls_configured
|
||||
ansible.builtin.set_fact:
|
||||
htmlls_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}"
|
||||
- name: Add htmx_lsp
|
||||
when:
|
||||
- htmx_lsp_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['htmx-lsp'] }}"
|
||||
|
||||
- name: Set htmx_lsp_configured
|
||||
ansible.builtin.set_fact:
|
||||
htmx_lsp_configured: true
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add httpie
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
|
||||
- httpie_configured is undefined
|
||||
block:
|
||||
- name: Load httpie config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/httpie.yml
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [httpie.pkg] }}"
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [httpie.pkg] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [httpie.pkg] }}"
|
||||
|
||||
- name: Set httpie_configured
|
||||
ansible.builtin.set_fact:
|
||||
httpie_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['hugo'] }}"
|
||||
- name: Add hugo
|
||||
when:
|
||||
- hugo_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['hugo'] }}"
|
||||
|
||||
- name: Set hugo_configured
|
||||
ansible.builtin.set_fact:
|
||||
hugo_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['hyperfine'] }}"
|
||||
- name: Add hyperfine
|
||||
when:
|
||||
- hyperfine_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['hyperfine'] }}"
|
||||
|
||||
- name: Set hyperfine_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyperfine_configured: true
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprcursor'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprcursor
|
||||
when:
|
||||
- hyprcursor_configured is undefined
|
||||
block:
|
||||
- name: Load hyprcursor config
|
||||
when:
|
||||
- hyprcursor is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprcursor.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprcursor.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprcursor'] }}"
|
||||
|
||||
- name: Set hyprcursor_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprcursor_configured: true
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprgraphics'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprgraphics
|
||||
when:
|
||||
- hyprgraphics_configured is undefined
|
||||
block:
|
||||
- name: Load hyprgraphics config
|
||||
when:
|
||||
- hyprgraphics is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprgraphics.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprgraphics.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprgraphics'] }}"
|
||||
|
||||
- name: Set hyprgraphics_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprgraphics_configured: true
|
||||
|
||||
@@ -1,13 +1,29 @@
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ hyprland.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: pkg_dep
|
||||
vars:
|
||||
pkg: "{{ pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprland
|
||||
when:
|
||||
- hyprland_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland config
|
||||
when:
|
||||
- hyprland is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprland'] }}"
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ hyprland.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprland_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprland_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprland_pkg_dep }}.yml"
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprland'] }}"
|
||||
|
||||
- name: Set hyprland_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_configured: true
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
- name: Append to pkg lists
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprland_protocols'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprland-protocols
|
||||
when:
|
||||
- hyprland_protcols_configured is undefined
|
||||
block:
|
||||
- name: Load hyprland-protocols config
|
||||
when:
|
||||
- hyprland_protocols is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprland_protocols.yml
|
||||
|
||||
- name: Append to pkg lists
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprland_protocols.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprland_protocols'] }}"
|
||||
|
||||
- name: Set hyprland_protcols_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprland_protcols_configured: true
|
||||
|
||||
@@ -1,13 +1,29 @@
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ hyprlang.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: pkg_dep
|
||||
vars:
|
||||
pkg: "{{ pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: addpkg.yml
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprlang
|
||||
when:
|
||||
- hyprlang_configured
|
||||
block:
|
||||
- name: Load hyprlang config
|
||||
when:
|
||||
- hyprlang is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprlang.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprlang'] }}"
|
||||
- name: Ensure pkg_deps are added
|
||||
loop: "{{ hyprlang.pkg_deps }}"
|
||||
loop_control:
|
||||
loop_var: hyprlang_pkg_dep
|
||||
vars:
|
||||
pkg: "{{ hyprlang_pkg_dep }}"
|
||||
ansible.builtin.include_tasks:
|
||||
file: "pkgs/{{ hyprlang_pkg_dep }}.yml"
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprlang.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprlang'] }}"
|
||||
|
||||
- name: Set hyprlang_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprlang_configured: true
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprutils'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprutils
|
||||
when:
|
||||
- hyprutils_configured is undefined
|
||||
block:
|
||||
- name: Load hyprutils config
|
||||
when:
|
||||
- hyprutils is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprutils.yml
|
||||
|
||||
- name: Append to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprutils.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprutils'] }}"
|
||||
|
||||
- name: Set hyprutils_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprutils_configured: true
|
||||
|
||||
@@ -1,6 +1,22 @@
|
||||
- name: Append to pkg_sys and pkg_src
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add hyprwayland-scanner
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}"
|
||||
- hyprwayland_scanner_configured is undefined
|
||||
block:
|
||||
- name: Load hyprwayland-scanner config
|
||||
when:
|
||||
- hyprwayland_scanner is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/hyprwayland_scanner.yml
|
||||
|
||||
- name: Append to pkg_sys and pkg_src
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + hyprwayland_scanner.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['hyprwayland_scanner'] }}"
|
||||
|
||||
- name: Set hyprwayland_scanner_configured
|
||||
ansible.builtin.set_fact:
|
||||
hyprwayland_scanner_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['intelephense'] }}"
|
||||
- name: Add intelephense
|
||||
when:
|
||||
- intelephense_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['intelephense'] }}"
|
||||
|
||||
- name: Set intelephense_configured
|
||||
ansible.builtin.set_fact:
|
||||
intelephense_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}"
|
||||
- name: Add jinja_lsp
|
||||
when:
|
||||
- jinja_lsp_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['jinja-lsp'] }}"
|
||||
|
||||
- name: Set jinja_lsp_configured
|
||||
ansible.builtin.set_fact:
|
||||
jinja_lsp_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['jq'] }}"
|
||||
- name: Add jq
|
||||
when:
|
||||
- jq_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['jq'] }}"
|
||||
|
||||
- name: Set jq_configured
|
||||
ansible.builtin.set_fact:
|
||||
jq_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
- name: Add jsonls
|
||||
when:
|
||||
- jsonls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['vscode-langservers-extracted'] }}"
|
||||
|
||||
- name: Set jsonls_configured
|
||||
ansible.builtin.set_fact:
|
||||
jsonls_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + kitty.pkgs }}"
|
||||
- name: Add kitty
|
||||
when:
|
||||
- kitty_configured is undefined
|
||||
block:
|
||||
- name: Load kitty config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/kitty.yml
|
||||
|
||||
- name: Add to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + kitty.pkgs }}"
|
||||
|
||||
- name: Set kitty_configured
|
||||
ansible.builtin.set_fact:
|
||||
kitty_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
|
||||
- name: Add lazygit
|
||||
when:
|
||||
- lazygit_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/jesseduffield/lazygit@latest'] }}"
|
||||
|
||||
- name: Set lazygit_configured
|
||||
ansible.builtin.set_fact:
|
||||
lazygit_configured: true
|
||||
|
||||
@@ -1,19 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add libreoffice
|
||||
when:
|
||||
- libreoffice.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
|
||||
- libreoffice_configured is undefined
|
||||
block:
|
||||
- name: Load libreoffice config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/libreoffice.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- libreoffice.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- libreoffice.method == 'flatpak'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [libreoffice.flatpak] }}"
|
||||
|
||||
- name: Append to caskpkgs
|
||||
when:
|
||||
- libreoffice.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- libreoffice.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
sys_pkg: "{{ sys_pkg + libreoffice.pkgs }}"
|
||||
|
||||
- name: Append to caskpkgs
|
||||
when:
|
||||
- libreoffice.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + libreoffice.pkgs }}"
|
||||
|
||||
- name: Set libreoffice_configured
|
||||
ansible.builtin.set_fact:
|
||||
libreoffice_configured: true
|
||||
|
||||
@@ -1,13 +1,25 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
- name: Add luals
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['luals'] }}"
|
||||
- luals_configured is undefined
|
||||
block:
|
||||
- name: Load luals config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/luals.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}"
|
||||
- name: Append to pkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['luals'] }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['lua-language-server'] }}"
|
||||
|
||||
- name: Set luals_configured
|
||||
ansible.builtin.set_fact:
|
||||
luals_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"
|
||||
- name: Add markdownlint_cli
|
||||
when:
|
||||
- markdownlint_cli_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['markdownlint-cli'] }}"
|
||||
|
||||
- name: Set markdownlint_cli_configured
|
||||
ansible.builtin.set_fact:
|
||||
markdownlint_cli_configured: true
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add mcfly
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['mcfly'] }}"
|
||||
- mcfly_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['mcfly'] }}"
|
||||
|
||||
- name: Add to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['mcfly'] }}"
|
||||
- name: Add to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['mcfly'] }}"
|
||||
|
||||
- name: Set mcfly_configured
|
||||
ansible.builtin.set_fact:
|
||||
mcfly_configured: true
|
||||
|
||||
@@ -1,17 +1,29 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
- name: Add neovide
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + neovide.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
|
||||
- neovide_configured is undefined
|
||||
block:
|
||||
- name: Load neovide config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/neovide.yml
|
||||
|
||||
- name: Append neovide to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['neovide'] }}"
|
||||
- name: Append to pkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + neovide.deps }}"
|
||||
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
|
||||
|
||||
- name: Append neovide to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['neovide'] }}"
|
||||
|
||||
- name: Set neovide_configured
|
||||
ansible.builtin.set_fact:
|
||||
neovide_configured: true
|
||||
|
||||
@@ -1,13 +1,25 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to appimages
|
||||
- name: Add neovim
|
||||
when:
|
||||
- neovim.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ['neovim'] }}"
|
||||
- neovim_configured is undefined
|
||||
block:
|
||||
- name: Load neovim config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/neovim.yml
|
||||
|
||||
- name: Append neovim to pkg_sys
|
||||
when:
|
||||
- neovim.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['neovim'] }}"
|
||||
- name: Append to appimages
|
||||
when:
|
||||
- neovim.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ['neovim'] }}"
|
||||
|
||||
- name: Append neovim to pkg_sys
|
||||
when:
|
||||
- neovim.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['neovim'] }}"
|
||||
|
||||
- name: Set neovim_configured
|
||||
ansible.builtin.set_fact:
|
||||
neovim_configured: true
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to srcpkgs
|
||||
- name: Add nerdfonts
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['nerdfonts'] }}"
|
||||
- nerdfonts_configured is undefined
|
||||
block:
|
||||
- name: Load nerdfonts config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nerdfonts.yml
|
||||
|
||||
- name: Append to caskpkgs
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"
|
||||
- name: Append to srcpkgs
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['nerdfonts'] }}"
|
||||
|
||||
- name: Append to caskpkgs
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
loop: "{{ nerdfonts.fonts }}"
|
||||
loop_control:
|
||||
loop_var: font
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + [pkgconfig.nerdfonts.fonts[font].brew] }}"
|
||||
|
||||
- name: Set nerdfonts_configured
|
||||
ansible.builtin.set_fact:
|
||||
nerdfonts_configured: true
|
||||
|
||||
@@ -1,24 +1,36 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_Flatpak
|
||||
- name: Add nextcloud_client
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nextcloud.method == 'flatpak'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
|
||||
- nextcloud_client_configured is undefined
|
||||
block:
|
||||
- name: Load nextcloud-client config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nextcloud.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nextcloud.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
|
||||
- name: Append to pkg_Flatpak
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nextcloud.method == 'flatpak'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [nextcloud] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}"
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- nextcloud.method == 'sys'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['nextcloud'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['nextcloud'] }}"
|
||||
|
||||
- name: Set nextcloud_client_configured
|
||||
ansible.builtin.set_fact:
|
||||
nextcloud_client_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}"
|
||||
- name: Add nginxls
|
||||
when:
|
||||
- nginxls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['nginx-language-server'] }}"
|
||||
|
||||
- name: Set nginxls_configured
|
||||
ansible.builtin.set_fact:
|
||||
nginxls_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nodejs.pkgs }}"
|
||||
- name: Add nodejs
|
||||
when:
|
||||
- nodejs_configured is undefined
|
||||
block:
|
||||
- name: Load nodejs config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nodejs.yml
|
||||
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nodejs.pkgs }}"
|
||||
|
||||
- name: Set nodejs_configured
|
||||
ansible.builtin.set_fact:
|
||||
nodejs_configured: true
|
||||
|
||||
@@ -1,19 +1,31 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_tap
|
||||
- name: Add nomad
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + nomad.pkgs }}"
|
||||
- nomad_configured is undefined
|
||||
block:
|
||||
- name: Load nomad config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/nomad.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nomad.pkgs }}"
|
||||
- name: Append to pkg_tap
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + nomad.pkgs }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + nomad.pkgs }}"
|
||||
|
||||
- name: Set nomad_configured
|
||||
ansible.builtin.set_fact:
|
||||
nomad_configured: true
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_tap
|
||||
- name: Add packer
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + packer.pkgs }}"
|
||||
- packer_configured is undefined
|
||||
block:
|
||||
- name: Load packer config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/packer.yml
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
|
||||
- name: Append to pkg_tap
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + packer.pkgs }}"
|
||||
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
|
||||
|
||||
- name: Set packer_configured
|
||||
ansible.builtin.set_fact:
|
||||
packer_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
|
||||
- name: Add pandoc
|
||||
when:
|
||||
- pandoc_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
|
||||
|
||||
- name: Set pandoc_configured
|
||||
ansible.builtin.set_fact:
|
||||
pandoc_configured: true
|
||||
|
||||
@@ -1,16 +1,28 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_flatpak
|
||||
- name: Add pgadmin
|
||||
when:
|
||||
- pgadmin.method == 'flatpak'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
|
||||
- pgadmin_configured is undefined
|
||||
block:
|
||||
- name: Load pgadmin config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/pgadmin.yml
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- pgadmin.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + pgadmin.pkgs }}"
|
||||
- name: Append to pkg_flatpak
|
||||
when:
|
||||
- pgadmin.method == 'flatpak'
|
||||
notify:
|
||||
- Depend flatpak
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_flatpak: "{{ pkg_flatpak + [pgadmin.flatpak] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- pgadmin.method == 'cask'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + pgadmin.pkgs }}"
|
||||
|
||||
- name: Set pgadmin_configured
|
||||
ansible.builtin.set_fact:
|
||||
pgadmin_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pipx'] }}"
|
||||
- name: Add pipx
|
||||
when:
|
||||
- pipx_configured is undefined
|
||||
block:
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['pipx'] }}"
|
||||
|
||||
- name: Set pipx_configured
|
||||
ansible.builtin.set_fact:
|
||||
pipx_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['podman'] }}"
|
||||
- name: Add podman
|
||||
when:
|
||||
- podman_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['podman'] }}"
|
||||
|
||||
- name: Set podman_configured
|
||||
ansible.builtin.set_fact:
|
||||
podman_configured: true
|
||||
|
||||
@@ -1,3 +1,17 @@
|
||||
- name: Append pulumit to pkg_archive
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['pulumi'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add pulumi
|
||||
when:
|
||||
- pulumi_configured is undefined
|
||||
block:
|
||||
- name: Load pulumi config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/pulumi.yml
|
||||
|
||||
- name: Append pulumit to pkg_archive
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['pulumi'] }}"
|
||||
|
||||
- name: Set pulumi_configured
|
||||
ansible.builtin.set_fact:
|
||||
pulumi_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend pipx
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}"
|
||||
- name: Add pyright
|
||||
when:
|
||||
- pyright_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend pipx
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['pyright'] }}"
|
||||
|
||||
- name: Set pyright_configured
|
||||
ansible.builtin.set_fact:
|
||||
pyright_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + python3.pkgs }}"
|
||||
- name: Add python3
|
||||
when:
|
||||
- python3_configured is undefined
|
||||
block:
|
||||
- name: Load python3 config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/python3.yml
|
||||
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + python3.pkgs }}"
|
||||
|
||||
- name: Set python3_configured
|
||||
ansible.builtin.set_fact:
|
||||
python3_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}"
|
||||
- name: Add quobix_vacuum
|
||||
when:
|
||||
- quobix_vacuum_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@quobix/vacuum'] }}"
|
||||
|
||||
- name: Set quobix_vacuum_configured
|
||||
ansible.builtin.set_fact:
|
||||
quobix_vacuum_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}"
|
||||
- name: Add revive
|
||||
when:
|
||||
- revive_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/mgechev/revive@latest'] }}"
|
||||
|
||||
- name: Set revive_configured
|
||||
ansible.builtin.set_fact:
|
||||
revive_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ripgrep'] }}"
|
||||
- name: Add ripgrep
|
||||
when:
|
||||
- ripgrep_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ripgrep'] }}"
|
||||
|
||||
- name: Set ripgrep_configured
|
||||
ansible.builtin.set_fact:
|
||||
ripgrep_configured: true
|
||||
|
||||
@@ -1,5 +1,17 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + rust.pkgs }}"
|
||||
- name: Add rust
|
||||
when:
|
||||
- rust_configured is undefined
|
||||
block:
|
||||
- name: Load rust config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/rust.yml
|
||||
|
||||
- name: Append to pkgs
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + rust.pkgs }}"
|
||||
|
||||
- name: Set rust_configured
|
||||
ansible.builtin.set_fact:
|
||||
rust_configured: true
|
||||
|
||||
@@ -1,16 +1,24 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add sd
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['sd'] }}"
|
||||
- sd_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['sd'] }}"
|
||||
|
||||
- name: Add to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
|
||||
- name: Add to pkg_cargo
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['sd'] }}"
|
||||
|
||||
- name: Set sd_configured
|
||||
ansible.builtin.set_fact:
|
||||
sd_configured: true
|
||||
|
||||
@@ -1,4 +1,20 @@
|
||||
- name: Append to pkg list
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + sdbus_cpp_2.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['sdbus_cpp_2'] }}"
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add sdbus_cpp_2
|
||||
when:
|
||||
- sdbus_cpp_2_configured is undefined
|
||||
block:
|
||||
- name: Load sdbus-cpp-2 config
|
||||
when:
|
||||
- sdbus_cpp_2 is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/sdbus_cpp_2.yml
|
||||
|
||||
- name: Append to pkg list
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + sdbus_cpp_2.build_deps }}"
|
||||
pkg_src: "{{ pkg_src + ['sdbus_cpp_2'] }}"
|
||||
|
||||
- name: Set sdbus_cpp_2_configured
|
||||
ansible.builtin.set_fact:
|
||||
sdbus_cpp_2_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend pipx
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}"
|
||||
- name: Add sqlfluff
|
||||
when:
|
||||
- sqlfluff_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_pipx
|
||||
notify:
|
||||
- Depend pipx
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_pipx: "{{ pkg_pipx + ['sqlfluff'] }}"
|
||||
|
||||
- name: Set sqlfluff_configured
|
||||
ansible.builtin.set_fact:
|
||||
sqlfluff_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}"
|
||||
- name: Add sqlls
|
||||
when:
|
||||
- sqlls_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['sql-language-server'] }}"
|
||||
|
||||
- name: Set sqlls_configured
|
||||
ansible.builtin.set_fact:
|
||||
sqlls_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['starship'] }}"
|
||||
- name: Add starship
|
||||
when:
|
||||
- starship_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_cargo
|
||||
notify:
|
||||
- Depend cargo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + ['starship'] }}"
|
||||
|
||||
- name: Set starship_configured
|
||||
ansible.builtin.set_fact:
|
||||
starship_configured: true
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['stow'] }}"
|
||||
- name: Add stow
|
||||
when:
|
||||
- stow_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['stow'] }}"
|
||||
|
||||
- name: Set stow_configured
|
||||
ansible.builtin.set_fact:
|
||||
stow_configured: true
|
||||
|
||||
@@ -1,65 +1,77 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Enable for linux
|
||||
- name: Add tailscale
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- tailscale_configured is undefined
|
||||
block:
|
||||
- name: Enable for RedHat distros
|
||||
- name: Load tailscale config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/tailscale.yml
|
||||
|
||||
- name: Enable for linux
|
||||
when:
|
||||
- ansible_os_family == 'RedHat'
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Fedora >=41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
become: true
|
||||
- name: Enable for RedHat distros
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int >= 41
|
||||
|
||||
- name: Fedora <41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int < 41
|
||||
|
||||
- name: Rhel based distros
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution != 'Fedora'
|
||||
|
||||
- name: Enable for Debian distros
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
block:
|
||||
- name: Install tailscale keyring
|
||||
- ansible_os_family == 'RedHat'
|
||||
block:
|
||||
- name: Get tailscal keyring
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.gpg }}"
|
||||
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||
mode: '0644'
|
||||
- name: Fedora >=41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager addrepo --from-repofile={{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int >= 41
|
||||
|
||||
- name: Get tailscale repo list
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.list }}"
|
||||
dest: /etc/apt/sources.list.d/tailscale.list
|
||||
mode: '0644'
|
||||
- name: Fedora <41
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/fedora/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution == 'Fedora'
|
||||
- ansible_distribution_major_version|int < 41
|
||||
|
||||
- name: Append to pkg_sys
|
||||
- name: Rhel based distros
|
||||
ansible.builtin.command:
|
||||
creates: /etc/yum.repos.d/tailscale.repo
|
||||
cmd: "dnf config-manager --add-repo {{ tailscale.url_base }}/rhel/{{ ansible_os_major_version }}/tailscale.repo"
|
||||
become: true
|
||||
when:
|
||||
- ansible_distribution != 'Fedora'
|
||||
|
||||
- name: Enable for Debian distros
|
||||
when:
|
||||
- ansible_os_family == 'Debian'
|
||||
block:
|
||||
- name: Install tailscale keyring
|
||||
block:
|
||||
- name: Get tailscal keyring
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.gpg }}"
|
||||
dest: /usr/share/keyrings/tailscale-archive-keyring.gpg
|
||||
mode: '0644'
|
||||
|
||||
- name: Get tailscale repo list
|
||||
become: "{{ sys_pkg_become }}"
|
||||
ansible.builtin.get_url:
|
||||
url: "{{ tailscale.url_base }}/debian/{{ tailscale.release.list }}"
|
||||
dest: /etc/apt/sources.list.d/tailscale.list
|
||||
mode: '0644'
|
||||
|
||||
- name: Append to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tailscale'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['tailscale'] }}"
|
||||
pkg_cask: "{{ pkg_cask + ['tailscale'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['tailscale'] }}"
|
||||
- name: Set tailscale_configured
|
||||
ansible.builtin.set_fact:
|
||||
tailscale_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}"
|
||||
- name: Add tailwindcss_languageserver
|
||||
when:
|
||||
- tailwindcss_languageserver_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_npm
|
||||
notify:
|
||||
- Depend node
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_npm: "{{ pkg_npm + ['@tailwindcss/language-server'] }}"
|
||||
|
||||
- name: Set tailwindcss_languageserver_configured
|
||||
ansible.builtin.set_fact:
|
||||
tailwindcss_languageserver_configured: true
|
||||
|
||||
@@ -1,8 +1,16 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"
|
||||
- name: Add templ
|
||||
when:
|
||||
- templ_configured is undefined
|
||||
block:
|
||||
- name: Add to pkg_go
|
||||
notify:
|
||||
- Depend go
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_go: "{{ pkg_go + ['github.com/a-h/templ/cmd/templ@latest'] }}"
|
||||
|
||||
- name: Set templ_configured
|
||||
ansible.builtin.set_fact:
|
||||
templ_configured: true
|
||||
|
||||
@@ -1,21 +1,33 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
- name: Add terraform
|
||||
when:
|
||||
- terraform_configured is undefined
|
||||
block:
|
||||
- name: MacOSX specific
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
|
||||
- name: Load terraform config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/terraform.yml
|
||||
|
||||
- name: Linux specific
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
||||
- name: Append to pkgs
|
||||
block:
|
||||
- name: MacOSX specific
|
||||
when:
|
||||
- ansible_distribution == 'MacOSX'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + terraform.pkgs }}"
|
||||
|
||||
- name: Linux specific
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
||||
|
||||
- name: Set terraform_configured
|
||||
ansible.builtin.set_fact:
|
||||
terraform_configured: true
|
||||
|
||||
@@ -1,21 +1,33 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkgs
|
||||
- name: Add terraformls
|
||||
when:
|
||||
- terraformls_configured is undefined
|
||||
block:
|
||||
- name: MacOS specific
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
|
||||
- name: Load terraformls config
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/terraformls.yml
|
||||
|
||||
- name: Linux specific
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
||||
- name: Append to pkgs
|
||||
block:
|
||||
- name: MacOS specific
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_tap: "{{ pkg_tap + terraformls.pkgs }}"
|
||||
|
||||
- name: Linux specific
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
||||
|
||||
- name: Set terraformls_configured
|
||||
ansible.builtin.set_fact:
|
||||
terraformls_configured: true
|
||||
|
||||
@@ -1,13 +1,21 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Append to pkg_sys
|
||||
- name: Add thunderbird
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['thunderbird'] }}"
|
||||
- thunderbird_configured is undefined
|
||||
block:
|
||||
- name: Append to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['thunderbird'] }}"
|
||||
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['thunderbird'] }}"
|
||||
- name: Append to pkg_cask
|
||||
when:
|
||||
- ansible_system == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['thunderbird'] }}"
|
||||
|
||||
- name: Set thunderbird_configured
|
||||
ansible.builtin.set_fact:
|
||||
thunderbird_configured: true
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user