adding Alpine specific installations
This commit is contained in:
13
tasks/archive/packer.yml
Normal file
13
tasks/archive/packer.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
- name: Download packer archive
|
||||
ansible.builtin.get_url:
|
||||
dest: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
|
||||
url: "{{ packer.archive.url }}/{{ packer.archive.file }}"
|
||||
decompress: false
|
||||
mode: '0644'
|
||||
|
||||
- name: Extract packer archive
|
||||
become: "{{ ext_become }}"
|
||||
ansible.builtin.unarchive:
|
||||
dest: "{{ path.archive }}/packer"
|
||||
src: "{{ d_tempdir.path }}/{{ packer.archive.file }}"
|
||||
remote_src: true
|
||||
@@ -3,7 +3,7 @@
|
||||
- name: Set alacritty configuration
|
||||
ansible.builtin.set_fact:
|
||||
alacritty:
|
||||
deps: "{{ pkgconfig.alacritty[ansible_os_family].build_deps }}"
|
||||
deps: "{{ pkgconfig.alacritty.build_deps[ansible_os_family] }}"
|
||||
vers: "{{ pkgconfig.alacritty.version }}"
|
||||
cask: "{{ pkgconfig.alacritty.cask | default(omit) }}"
|
||||
locked: true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- name: Set fd config
|
||||
ansible.builtin.set_fact:
|
||||
fd:
|
||||
pkgs: "{{ pkgconfig.fd.pkgs[ansible_system] }}"
|
||||
pkgs: "{{ pkgconfig.fd.pkgs[ansible_os_family] }}"
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||
vers: "{{ pkgconfig.ghostty.version }}"
|
||||
pkg: "{{ pkgconfig.ghostty[ghostty.method] }}"
|
||||
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||
|
||||
- name: Set ghostty config for appimage install
|
||||
when:
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
- name: Set git config
|
||||
ansible.builtin.set_fact:
|
||||
git:
|
||||
pkgs: "{{ pkgconfig.git.pkgs[ansible_system] }}"
|
||||
pkgs: "{{ pkgconfig.git.pkgs[ansible_os_family] }}"
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
hyprpolkitagent:
|
||||
vers: "{{ pkgconfig.hyprpolkitagent.version }}"
|
||||
repo: "{{ pkgconfig.hyprpolkitagent.repo }}"
|
||||
build_deps: "{{ pkgconfig.hyprpolkitagent.build_deps }}"
|
||||
build_deps: "{{ pkgconfig.hyprpolkitagent.build_deps[ansible_os_family] }}"
|
||||
installed_files: "{{ pkgconfig.hyprpolkitagent.build_installed_files }}"
|
||||
git_path: "{{ d_tempdir.path }}/hyprpolkitagent"
|
||||
|
||||
@@ -2,3 +2,6 @@
|
||||
ansible.builtin.set_fact:
|
||||
packer:
|
||||
pkgs: "{{ pkgconfig.packer.pkgs[ansible_system] }}"
|
||||
archive:
|
||||
file: "packer_{{ pkgconfig.packer.version }}_linux_amd64.zip"
|
||||
url: "{{ pkgconfig.packer.baseurl }}/packer/{{ pkgconfig.packer.version }}"
|
||||
|
||||
@@ -12,12 +12,15 @@
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
block:
|
||||
- name: Append alacritty to pkg_sys and pkg_cargo
|
||||
- name: Append alacritty build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + alacritty.build_deps }}"
|
||||
|
||||
- name: Append alacritty to pkg_cargo
|
||||
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 pkg_cask
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
block:
|
||||
- name: Append ghostty build deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ghostty.deps }}"
|
||||
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
|
||||
|
||||
- name: Append ghostty to pkg_src
|
||||
notify:
|
||||
- Depend zig
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_src: "{{ pkg_src + ['ghostty'] }}"
|
||||
pkg_src: "{{ pkg_src + [ghostty.pkg] }}"
|
||||
|
||||
- name: Append ghostty to pkg_appimage
|
||||
when:
|
||||
@@ -42,13 +42,13 @@
|
||||
- Depend terra repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['ghostty'] }}"
|
||||
pkg_sys: "{{ pkg_sys + [ghostty.pkg] }}"
|
||||
|
||||
- name: Append ghostty to pkg_cask
|
||||
when:
|
||||
- ghostty.method == 'brew'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cask: "{{ pkg_cask + ['ghostty'] }}"
|
||||
pkg_cask: "{{ pkg_cask + [ghostty.pkg] }}"
|
||||
|
||||
- name: Set ghostty_configured
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
@@ -17,12 +17,19 @@
|
||||
- name: Append packer to pkg_sys
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
- ansible_os_family != 'Alpine'
|
||||
notify:
|
||||
- Depend hashicorp repo
|
||||
changed_when: true
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + packer.pkgs }}"
|
||||
|
||||
- name: Append packer to pkg_archive
|
||||
when:
|
||||
- ansible_os_family == 'Alpine'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_archive: "{{ pkg_archive + ['packer'] }}"
|
||||
|
||||
- name: Set packer_configured
|
||||
ansible.builtin.set_fact:
|
||||
packer_configured: true
|
||||
|
||||
@@ -3,16 +3,16 @@
|
||||
- name: Add uwsm
|
||||
when:
|
||||
- uwsm_configured is undefined
|
||||
- ansible_os_family != 'Alpine'
|
||||
- ansible_os_family != 'Darwin'
|
||||
block:
|
||||
- name: Load uwsm config
|
||||
when:
|
||||
- uwsm is undefined
|
||||
ansible.builtin.include_tasks:
|
||||
file: config/uwsm.yml
|
||||
|
||||
- name: Append uwsm build_deps to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uswm.deps }}"
|
||||
pkg_sys: "{{ pkg_sys + uwsm.build_deps + uwsm.deps }}"
|
||||
|
||||
- name: Append uwsm to pkg_src
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user