more fixes, more config
This commit is contained in:
@@ -6,8 +6,8 @@
|
|||||||
- cargo
|
- cargo
|
||||||
- install
|
- install
|
||||||
- --root
|
- --root
|
||||||
- /usr/local
|
- "{{ pkgconfig_alacritty.install_prefix }}"
|
||||||
- --git
|
- --git
|
||||||
- https://github.com/alacritty/alacritty.git
|
- "{{ pkgconfig_alacritty.git_repo }}"
|
||||||
- --tag
|
- --tag
|
||||||
- "v{{ _alacritty.version }}"
|
- "v{{ pkgconfig_alacritty.version }}"
|
||||||
|
|||||||
@@ -6,31 +6,31 @@
|
|||||||
- name: set install path for non-system installs
|
- name: set install path for non-system installs
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
nerdfonts_install_path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts"
|
nerdfonts_install_path: "{{ lookup('ansible.builtin.env', 'HOME') }}/.local/share/fonts"
|
||||||
when: not _nerdfonts.nerdfonts_system_install
|
when: not pkgconfig_nerdfonts.system_install
|
||||||
|
|
||||||
- name: set install path for system wide installs
|
- name: set install path for system wide installs
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
nerdfonts_install_path: "/usr/local/share/fonts"
|
nerdfonts_install_path: "/usr/local/share/fonts"
|
||||||
when: _nerdfonts.nerdfonts_system_install
|
when: pkgconfig_nerdfonts.system_install
|
||||||
|
|
||||||
- name: create nerdfonts directories
|
- name: create nerdfonts directories
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
path: "{{ nerdfonts_install_path }}/{{ font.name }}"
|
path: "{{ nerdfonts_install_path }}/{{ font }}"
|
||||||
state: directory
|
state: directory
|
||||||
become: "{{ _nerdfonts.nerdfonts_system_install }}"
|
become: "{{ pkgconfig_nerdfonts.system_install }}"
|
||||||
loop: "{{ nerdfonts }}"
|
loop: "{{ pkgconfig_nerdfonts.install }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: font
|
loop_var: font
|
||||||
register: nerdfont_result
|
register: nerdfont_result
|
||||||
|
|
||||||
- name: Download and extract nerdfonts
|
- name: Download and extract nerdfonts
|
||||||
ansible.builtin.unarchive:
|
ansible.builtin.unarchive:
|
||||||
creates: "{{ nerdfonts_install_path }}/{{ font.name }}/README.md"
|
creates: "{{ nerdfonts_install_path }}/{{ font }}/README.md"
|
||||||
src: "https://github.com/ryanoasis/nerd-fonts/releases/latest/download/{{ font.name }}.tar.xz"
|
src: "{{ pkgconfig_nerdfonts.base_url }}/{{ font }}.tar.xz"
|
||||||
dest: "{{ nerdfonts_install_path }}/{{ font.name }}"
|
dest: "{{ nerdfonts_install_path }}/{{ font }}"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
when: nerdfont_result is changed
|
when: nerdfont_result is changed
|
||||||
become: nerdfonts_system_install
|
become: nerdfonts_system_install
|
||||||
loop: "{{ _nerdfonts.fonts }}"
|
loop: "{{ pkgconfig_nerdfonts.install }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: font
|
loop_var: font
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
---
|
||||||
|
- ansible.builtin.include_tasks:
|
||||||
|
file: pkgs/go.yml
|
||||||
|
when: pkgconfig_go not defined
|
||||||
|
|
||||||
- name: add to gopkgs
|
- name: add to gopkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
gopkgs: "{{ gopkgs + ['github.com/air-verse/air@latest'] }}"
|
gopkgs: "{{ gopkgs + ['github.com/air-verse/air@latest'] }}"
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
file: alacritty.yml
|
file: alacritty.yml
|
||||||
name: _alacritty
|
name: _alacritty
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_alacritty: "{{ _alacritty | ansible.builtin.combine(pkgconfig.alacritty) }}"
|
||||||
alacritty: "{{ _alacritty | ansible.builtin.combine(pkgconfig.alacritty) }}"
|
|
||||||
|
|
||||||
- name: linux based installation
|
- name: linux based installation
|
||||||
when: ansible_system == 'Linux'
|
when: ansible_system == 'Linux'
|
||||||
@@ -12,23 +11,14 @@
|
|||||||
- name: install rust and cargo
|
- name: install rust and cargo
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: "pkgs/rust.yml"
|
file: "pkgs/rust.yml"
|
||||||
tags:
|
when: pkgconfig_rust not defined
|
||||||
- rust
|
|
||||||
- dependency
|
|
||||||
|
|
||||||
- name: append to pkgs
|
- name: append to pkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
syspkgs: "{{ syspkgs + pkgconfig.alacritty.build_deps[ansible_distribution] }}"
|
syspkgs: "{{ syspkgs + pkgconfig_alacritty.build_deps[ansible_distribution] }}"
|
||||||
srcpkgs: "{{ srcpkgs + [ 'alacritty' ] }}"
|
srcpkgs: "{{ srcpkgs + [ 'alacritty' ] }}"
|
||||||
tags:
|
|
||||||
- syspkgs
|
|
||||||
- srcpkgs
|
|
||||||
|
|
||||||
- name: append alacritty to caskpkgs
|
- name: append alacritty to caskpkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
caskpkgs: "{{ caskpkgs + [ 'alacritty' ] }}"
|
caskpkgs: "{{ caskpkgs + [ 'alacritty' ] }}"
|
||||||
when: ansible_system == 'Darwin'
|
when: ansible_system == 'Darwin'
|
||||||
tags:
|
|
||||||
- MacOS
|
|
||||||
- brew
|
|
||||||
- package
|
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
---
|
||||||
|
- ansible.builtin.include_tasks:
|
||||||
|
file: pkgs/nodejs.yml
|
||||||
|
when: pkgconfig_nodejs not defined
|
||||||
|
|
||||||
- name: add to npmpkgs
|
- name: add to npmpkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
npmpkgs: "{{ npmpkgs + ['@ansible/ansible-language-server'] }}"
|
npmpkgs: "{{ npmpkgs + ['@ansible/ansible-language-server'] }}"
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
file: carapace.yml
|
file: carapace.yml
|
||||||
name: _carapace
|
name: _carapace
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_carapace: "{{ _carapace | ansible.builtin.combine(pkgconfig.carapace) }}"
|
||||||
carapace: "{{ _carapace | ansible.builtin.combine(pkgconfig.carapace) }}"
|
|
||||||
|
|
||||||
- name: enable carapace yum repository
|
- name: enable carapace yum repository
|
||||||
ansible.builtin.yum_repository:
|
ansible.builtin.yum_repository:
|
||||||
@@ -27,4 +26,4 @@
|
|||||||
|
|
||||||
- name: add carapace to syspkgs
|
- name: add carapace to syspkgs
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
syspkgs: "{{ syspkgs + pkgconfig.carapace.pkgs[ansible_system] }}"
|
syspkgs: "{{ syspkgs + pkgconfig_carapace.pkgs[ansible_system] }}"
|
||||||
|
|||||||
@@ -3,12 +3,13 @@
|
|||||||
- name: ensure hashicorp repo is active
|
- name: ensure hashicorp repo is active
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: "pkgs/hashicorp_repo.yml"
|
file: "pkgs/hashicorp_repo.yml"
|
||||||
|
when: pkgconfig_hashicorp is not defined
|
||||||
|
|
||||||
- name: append to syspkgs
|
- name: append to syspkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
syspkgs: "{{ syspkgs + [ pkgconfig.hashicorp.consul[ansible_system] ] }}"
|
syspkgs: "{{ syspkgs + [ pkgconfig_hashicorp.consul[ansible_system] ] }}"
|
||||||
when: ansible_system == 'Linux'
|
when: ansible_system == 'Linux'
|
||||||
|
|
||||||
- set_fact:
|
- set_fact:
|
||||||
tappkgs: "{{ tappkgs + [ pkgconfig.hashicorp.consul[ansible_system] ] }}"
|
tappkgs: "{{ tappkgs + [ pkgconfig_hashicorp.consul[ansible_system] ] }}"
|
||||||
when: ansible_system == 'Darwin'
|
when: ansible_system == 'Darwin'
|
||||||
|
|||||||
@@ -4,17 +4,11 @@
|
|||||||
block:
|
block:
|
||||||
- ansible.builtin.include_tasks:
|
- ansible.builtin.include_tasks:
|
||||||
file: "pkgs/terra_repo.yml"
|
file: "pkgs/terra_repo.yml"
|
||||||
tags:
|
when: pkgconfig_terrarepo is not defined
|
||||||
- dependency
|
|
||||||
- package
|
|
||||||
- terra
|
|
||||||
- syspkgs
|
|
||||||
|
|
||||||
- name: append to pkgs
|
- name: append to pkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
syspkgs: "{{ syspkgs + [ 'ghostty' ] }}"
|
syspkgs: "{{ syspkgs + [ 'ghostty' ] }}"
|
||||||
tags:
|
|
||||||
- syspkgs
|
|
||||||
|
|
||||||
- name: no ghostty for this system
|
- name: no ghostty for this system
|
||||||
when:
|
when:
|
||||||
@@ -27,8 +21,3 @@
|
|||||||
when: ansible_distribution == 'MacOSX'
|
when: ansible_distribution == 'MacOSX'
|
||||||
set_fact:
|
set_fact:
|
||||||
caskpkgs: "{{ caskpkgs + [ 'ghostty' ] }}"
|
caskpkgs: "{{ caskpkgs + [ 'ghostty' ] }}"
|
||||||
tags:
|
|
||||||
- MacOS
|
|
||||||
- brew
|
|
||||||
- package
|
|
||||||
- terminal
|
|
||||||
|
|||||||
@@ -3,14 +3,12 @@
|
|||||||
file: git.yml
|
file: git.yml
|
||||||
name: _git
|
name: _git
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_git: "{{ _git | ansible.builtin.combine(pkgconfig.git) }}"
|
||||||
git: "{{ _git | ansible.builtin.combine(pkgconfig.git) }}"
|
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_git:
|
||||||
git:
|
|
||||||
pkgs: "{{ pkgconfig.git.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.git.pkgs[ansible_system] }}"
|
||||||
|
|
||||||
- name: append to pkgs
|
- name: append to pkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
syspkgs: "{{ syspkgs + pkgconfig.git.pkgs }}"
|
syspkgs: "{{ syspkgs + pkgconfig_git.pkgs }}"
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
file: go.yml
|
file: go.yml
|
||||||
name: _go
|
name: _go
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_go: "{{ _go | ansible.builtin.combine(pkgconfig.go) }}"
|
||||||
go: "{{ _go | ansible.builtin.combine(pkgconfig.go) }}"
|
|
||||||
|
|
||||||
- name: append to pkgs
|
- name: append to pkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
---
|
||||||
|
- ansible.builtin.include_tasks:
|
||||||
|
file: pkgs/go.yml
|
||||||
|
when: pkgconfig_go is not defined
|
||||||
|
|
||||||
- name: add to gopkgs
|
- name: add to gopkgs
|
||||||
set_fact:
|
set_fact:
|
||||||
gopkgs: "{{ gopkgs + ['golang.org/x/tools/gopls@latest'] }}"
|
gopkgs: "{{ gopkgs + ['golang.org/x/tools/gopls@latest'] }}"
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
file: hashicorp_repo.yml
|
file: hashicorp_repo.yml
|
||||||
name: _hashicorp
|
name: _hashicorp
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_hashicorp: "{{ _hashicorp | ansible.builtin.combine(pkgonfig.hashicorp) }}"
|
||||||
hashicorp: "{{ _hashicorp | ansible.builtin.combine(pkgonfig.hashicorp) }}"
|
|
||||||
|
|
||||||
- name: RedHat repository
|
- name: RedHat repository
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
@@ -16,7 +15,7 @@
|
|||||||
- ansible_distribution_major_version|int >= 41
|
- ansible_distribution_major_version|int >= 41
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/hashicorp.repo
|
creates: /etc/yum.repos.d/hashicorp.repo
|
||||||
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig.hashicorp.Linux.Fedora.repo }}"
|
cmd: "dnf config-manager addrepo --from-repofile={{ pkgconfig_hashicorp.Linux.Fedora.repo }}"
|
||||||
|
|
||||||
- name: enable hashicorp repo for fedora <41
|
- name: enable hashicorp repo for fedora <41
|
||||||
become: true
|
become: true
|
||||||
@@ -25,7 +24,7 @@
|
|||||||
- ansible_distribution_major_version|int < 41
|
- ansible_distribution_major_version|int < 41
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/hashicorp.repo
|
creates: /etc/yum.repos.d/hashicorp.repo
|
||||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.hashicorp.Linux.Fedora.repo }}"
|
cmd: "dnf config-manager --add-repo {{ pkgconfig_hashicorp.Linux.Fedora.repo }}"
|
||||||
|
|
||||||
- name: enable hashicorp repo for RHEL like distribution
|
- name: enable hashicorp repo for RHEL like distribution
|
||||||
become: true
|
become: true
|
||||||
@@ -33,7 +32,7 @@
|
|||||||
- ansible_distribution != 'Fedora'
|
- ansible_distribution != 'Fedora'
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
creates: /etc/yum.repos.d/hashicorp.repo
|
creates: /etc/yum.repos.d/hashicorp.repo
|
||||||
cmd: "dnf config-manager --add-repo {{ pkgconfig.hashicorp.Linux.RedHat.repo }}"
|
cmd: "dnf config-manager --add-repo {{ pkgconfig_hashicorp.Linux.RedHat.repo }}"
|
||||||
|
|
||||||
- name: Debian based repository
|
- name: Debian based repository
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
@@ -60,7 +59,7 @@
|
|||||||
|
|
||||||
- name: enable hasicorp repo for debian
|
- name: enable hasicorp repo for debian
|
||||||
ansible.builtin.apt_repository:
|
ansible.builtin.apt_repository:
|
||||||
repo: "{{ pkgconfig.hashicorp.Linux.Debian.repo }}"
|
repo: "{{ pkgconfig_hashicorp.Linux.Debian.repo }}"
|
||||||
state: present
|
state: present
|
||||||
update_cache: false
|
update_cache: false
|
||||||
|
|
||||||
|
|||||||
@@ -3,9 +3,8 @@
|
|||||||
file: kitty.yml
|
file: kitty.yml
|
||||||
name: _kitty
|
name: _kitty
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_kitty: "{{ _kitty | ansible.builtin.combine(pkgconfig.kitty) }}"
|
||||||
kitty: "{{ _kitty | ansible.builtin.combine(pkgconfig.kitty) }}"
|
|
||||||
|
|
||||||
- name: add to syspkgs
|
- name: add to syspkgs
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
syspkgs: "{{ syspkgs + pkgconfig.kitty.pkgs[ansible_system] }}"
|
syspkgs: "{{ syspkgs + pkgconfig_kitty.pkgs[ansible_system] }}"
|
||||||
|
|||||||
@@ -3,18 +3,17 @@
|
|||||||
file: neovide.yml
|
file: neovide.yml
|
||||||
name: _neovide
|
name: _neovide
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_neovide: "{{ _neovide | ansible.builtin.combine(pkgconfig.neovide) }}"
|
||||||
neovide: "{{ _neovide | ansible.builtin.combine(pkgconfig.neovide) }}"
|
|
||||||
- ansible.builtin.include_tasks:
|
- ansible.builtin.include_tasks:
|
||||||
file: "pkgs/{{ pkgdep }}.yml"
|
file: "pkgs/{{ pkgdep }}.yml"
|
||||||
loop: "{{ pkgconfig.neovide.local_deps }}"
|
loop: "{{ pkgconfig_neovide.local_deps }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: pkgdep
|
loop_var: pkgdep
|
||||||
|
|
||||||
- name: append to pkgs
|
- name: append to pkgs
|
||||||
when: ansible_system == 'Linux'
|
when: ansible_system == 'Linux'
|
||||||
set_fact:
|
set_fact:
|
||||||
syspkgs: "{{ syspkgs + pkgconfig.neovide.pkgdeps[ansible_os_family] }}"
|
syspkgs: "{{ syspkgs + pkgconfig_neovide.pkgdeps[ansible_os_family] }}"
|
||||||
srcpkgs: "{{ srcpkgs + [ 'neovide' ] }}"
|
srcpkgs: "{{ srcpkgs + [ 'neovide' ] }}"
|
||||||
|
|
||||||
- name: append neovide to caskpkgs
|
- name: append neovide to caskpkgs
|
||||||
|
|||||||
@@ -3,15 +3,14 @@
|
|||||||
file: neovim.yml
|
file: neovim.yml
|
||||||
name: _neovim
|
name: _neovim
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_neovim: "{{ _neovim | ansible.builtin.combine(pkgconfig.neovim) }}"
|
||||||
neovim: "{{ _neovim | ansible.builtin.combine(pkgconfig.neovim) }}"
|
|
||||||
|
|
||||||
- name: append neovim to srcpkgs
|
- name: append neovim to srcpkgs
|
||||||
when: not pkgconfig.neovim.use_syspkg
|
when: not pkgconfig_neovim.use_syspkg
|
||||||
set_fact:
|
set_fact:
|
||||||
srcpkgs: "{{ srcpkgs + ['neovim'] }}"
|
srcpkgs: "{{ srcpkgs + ['neovim'] }}"
|
||||||
|
|
||||||
- name: append neovim to syspkgs
|
- name: append neovim to syspkgs
|
||||||
when: pkgconfig.neovim.use_syspkg
|
when: pkgconfig_neovim.use_syspkg
|
||||||
set_fact:
|
set_fact:
|
||||||
syspkgs: "{{ syspkgs + ['neovim'] }}"
|
syspkgs: "{{ syspkgs + ['neovim'] }}"
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
file: nerdfonts.yml
|
file: nerdfonts.yml
|
||||||
name: _nerdfonts
|
name: _nerdfonts
|
||||||
- ansible.builtin.set_fact:
|
- ansible.builtin.set_fact:
|
||||||
pkgconfig:
|
pkgconfig_nerdfonts: "{{ _nerdfonts | ansible.builtin.combine(pkgconfig.nerdfons) }}"
|
||||||
nerdfonts: "{{ _nerdfonts | ansible.builtin.combine(pkgconfig.nerdfons) }}"
|
|
||||||
|
|
||||||
- name: append to srcpkgs
|
- name: append to srcpkgs
|
||||||
when: ansible_system == 'Linux'
|
when: ansible_system == 'Linux'
|
||||||
@@ -14,7 +13,7 @@
|
|||||||
- name: append to caskpkgs
|
- name: append to caskpkgs
|
||||||
when: ansible_system == 'Darwin'
|
when: ansible_system == 'Darwin'
|
||||||
set_fact:
|
set_fact:
|
||||||
caskpkgs: "{{ caskpkgs + [ 'font-' + font.brew + '-nerd-font' ] }}"
|
caskpkgs: "{{ caskpkgs + [ pkgconfig_nerdfonts[font].brew ] }}"
|
||||||
loop: "{{ pkgconfig.nerdfonts.fonts }}"
|
loop: "{{ pkgconfig_nerdfonts.install }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: font
|
loop_var: font
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
version: 0.15.0
|
version: 0.15.0
|
||||||
|
install_prefix: /usr/local
|
||||||
|
|
||||||
# variables that aren't really configuration
|
# variables that aren't really configuration
|
||||||
build_deps:
|
build_deps:
|
||||||
@@ -18,3 +19,5 @@ build_deps:
|
|||||||
- libxcb-xfixes0-dev
|
- libxcb-xfixes0-dev
|
||||||
- libxkbcommon-dev
|
- libxkbcommon-dev
|
||||||
- python3
|
- python3
|
||||||
|
|
||||||
|
git_repo: https://github.com/alacritty/alacritty.git
|
||||||
|
|||||||
@@ -146,3 +146,5 @@ fonts:
|
|||||||
brew: font-victor-mono-nerd-font
|
brew: font-victor-mono-nerd-font
|
||||||
ZedMono:
|
ZedMono:
|
||||||
brew: font-zed-mono-nerd-font
|
brew: font-zed-mono-nerd-font
|
||||||
|
|
||||||
|
base_url: https://github.com/ryanoasis/nerd-fonts/releases/latest/download
|
||||||
|
|||||||
Reference in New Issue
Block a user