need to test the alacritty build to make sure it's ready
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Cargo source install helper
|
- name: Cargo source install helper
|
||||||
when:
|
|
||||||
- cargo_install_type == 'source'
|
|
||||||
block:
|
block:
|
||||||
- name: Set build variables
|
- name: Set build variables
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@@ -37,3 +35,30 @@
|
|||||||
mode: "0755"
|
mode: "0755"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
src: "{{ git_path }}/{{ bin_output }}"
|
src: "{{ git_path }}/{{ bin_output }}"
|
||||||
|
|
||||||
|
- name: Install additional files
|
||||||
|
when:
|
||||||
|
- install_files is defined
|
||||||
|
block:
|
||||||
|
- name: Create missing directories
|
||||||
|
loop: "{{ install_files | dict2items }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: file
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: "{{ install_prefix }}/{{ file.value | dirname }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0755"
|
||||||
|
state: directory
|
||||||
|
- name: Copy extra files
|
||||||
|
loop: "{{ install_files | dict2items }}"
|
||||||
|
loop_control:
|
||||||
|
loop_var: file
|
||||||
|
ansible.builtin.copy:
|
||||||
|
backup: false
|
||||||
|
dest: "{{ install_prefix }}/{{ file.value }}"
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: "0644"
|
||||||
|
remote_src: true
|
||||||
|
src: "{{ git_path }}/{{ file.key }}"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Configure alacritty # {{{
|
- name: Configure alacritty # {{{
|
||||||
|
when: __alacritty_configured is undefined
|
||||||
block:
|
block:
|
||||||
- name: Set basic variables
|
- name: Set basic variables
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
@@ -41,10 +42,12 @@
|
|||||||
bin_name: "alacritty"
|
bin_name: "alacritty"
|
||||||
install_prefix: "/usr/local"
|
install_prefix: "/usr/local"
|
||||||
install_files:
|
install_files:
|
||||||
share/pixmaps:
|
extra/logo/alacritty-term.svg: share/pixmaps/Alacritty.svg
|
||||||
- extra/logo/alacritty-term.svg
|
desktop_files:
|
||||||
desktop:
|
- extra/linux/Alacritty.desktop
|
||||||
- extra/linux/Alacritty.desktop
|
files_list:
|
||||||
|
- bin/alacritty
|
||||||
|
- share/pixmaps/Alacritty.svg
|
||||||
|
|
||||||
- name: Set alacritty install options
|
- name: Set alacritty install options
|
||||||
block:
|
block:
|
||||||
@@ -99,17 +102,19 @@
|
|||||||
block:
|
block:
|
||||||
- name: Append alacritty to pkg_cargo
|
- name: Append alacritty to pkg_cargo
|
||||||
when:
|
when:
|
||||||
- method == 'source'
|
- alacritty_method == 'source'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + alacritty_build_deps }}"
|
pkg_sys: "{{ pkg_sys + alacritty_build_deps }}"
|
||||||
pkg_cargo: "{{ pkg_cargo + [alacritty_src_install] }}"
|
pkg_cargo_build: "{{ pkg_cargo_build + [alacritty_src_install] }}"
|
||||||
|
|
||||||
- name: Append alacritty to pkg_cask
|
- name: Append alacritty to pkg_cask
|
||||||
when:
|
when:
|
||||||
- alacritty.method == 'cask'
|
- alacritty_method == 'cask'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cask: "{{ pkg_cask + [alacritty_pkgname] }}"
|
pkg_cask: "{{ pkg_cask + [alacritty_pkgname] }}"
|
||||||
|
|
||||||
- name: Set alacritty_configured
|
- name: Append alacritty to sys_pkg
|
||||||
|
when:
|
||||||
|
- alacritty_method == 'package'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
alacritty_configured: true
|
pkg_sys: "{{ pkg_sys + [alacritty_pkgname] }}"
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
# variables used in ansible_role_package
|
# variables used in ansible_role_package
|
||||||
---
|
---
|
||||||
|
default_install_method: package
|
||||||
debug: false
|
debug: false
|
||||||
use_local: false
|
use_local: false
|
||||||
prefer_method: src
|
prefer_method: src
|
||||||
|
|||||||
Reference in New Issue
Block a user