go_install helper now being used
This commit is contained in:
@@ -1,17 +1,15 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
---
|
||||
- name: Install go packages
|
||||
- name: Install go package "{{ pkg.url }}"
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
environment:
|
||||
GOBIN: "{{ path_bin }}"
|
||||
GOROOT: "{{ path_go }}"
|
||||
PATH: "{{ path_go }}/bin:$PATH"
|
||||
loop: pkg_go
|
||||
loop_control:
|
||||
loop_var: current
|
||||
ansible.builtin.command:
|
||||
creates: "{{ current.bin }}"
|
||||
creates: "{{ pkg.bin }}"
|
||||
argv:
|
||||
- go
|
||||
- install
|
||||
- "{{ current.url }}"
|
||||
- "{{ pkg.url }}"
|
||||
|
||||
@@ -41,11 +41,6 @@
|
||||
ansible.builtin.include_vars:
|
||||
file: pkglist.yml
|
||||
|
||||
- name: Load nerdfonts list
|
||||
ansible.builtin.include_vars:
|
||||
file: nerdfonts.yml
|
||||
name: __nerdfonts
|
||||
|
||||
- name: Add needed packages for Fedora
|
||||
when:
|
||||
- ansible_facts["distribution"] == 'Fedora'
|
||||
@@ -209,11 +204,11 @@
|
||||
- pkg_go|length > 0
|
||||
block:
|
||||
- name: Install go pkgs
|
||||
loop: "{{ pkg_go | unique }}"
|
||||
loop: "{{ pkg_go }}"
|
||||
loop_control:
|
||||
loop_var: pkg
|
||||
ansible.builtin.include_tasks:
|
||||
file: go.yml
|
||||
file: helpers/go_install.yml
|
||||
|
||||
- name: Install local npm packages
|
||||
when:
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
# Package: air
|
||||
# Description: application auto reload for go
|
||||
# Version: latest
|
||||
# Methods: source (go install)
|
||||
# Methods:
|
||||
# - source (go install)
|
||||
# Helpers: go_install
|
||||
---
|
||||
# {{{ Configure air
|
||||
@@ -14,7 +15,7 @@
|
||||
when:
|
||||
- air_install_method is undefined
|
||||
ansible.builtin.set_fact:
|
||||
air_install_method: "{% if install_method in air_install_methods %}{{ install_method }}{% else %}{{ air_install_method[0] }}{% endif %}"
|
||||
air_install_method: "{{ install_method if install_method in air_install_methods else air_install_methods[0] }}"
|
||||
|
||||
- name: Configure air source install
|
||||
when:
|
||||
@@ -33,9 +34,9 @@
|
||||
- name: Clean existing air install
|
||||
when:
|
||||
- clean_install
|
||||
loop: air_build_files
|
||||
loop: "{{ air_build_files }}"
|
||||
loop_control:
|
||||
lopo_var: air_file
|
||||
loop_var: air_file
|
||||
ansible.builtin.file:
|
||||
state: absent
|
||||
path: "{{ install_prefix }}/{{ air_file }}"
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
# vim: set filetype=yaml.ansible :
|
||||
# Package: alacritty
|
||||
# Description: GPU accelerated terminal emulator written in rust
|
||||
# Version: v0.16.1
|
||||
# Methods:
|
||||
# - system
|
||||
# - source (cargo build)
|
||||
# Helpers:
|
||||
# - cargo_build
|
||||
---
|
||||
- name: Configure alacritty # {{{
|
||||
# {{{ pre install configuration
|
||||
- name: Configure alacritty
|
||||
when:
|
||||
- "'alacritty' not in __configured"
|
||||
block:
|
||||
|
||||
@@ -4,11 +4,6 @@
|
||||
when:
|
||||
- "'nerdfonts' not in __configured"
|
||||
block:
|
||||
- name: Load nerdfonts list
|
||||
ansible.builtin.include_vars:
|
||||
file: nerdfonts.yml
|
||||
name: __nerdfonts
|
||||
|
||||
- name: Create nerdfonts directories
|
||||
become: "{{ install_become }}"
|
||||
become_user: "{{ install_become_user }}"
|
||||
|
||||
Reference in New Issue
Block a user