add more for Alpine
This commit is contained in:
13
tasks/archive/terraform.yml
Normal file
13
tasks/archive/terraform.yml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
- name: Download terraform archive
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
dest: "{{ d_tempdir.path }}/{{ terraform.file }}"
|
||||||
|
url: "{{ terraform.url }}/{{ terraform.file }}"
|
||||||
|
decompress: false
|
||||||
|
mode: '0644'
|
||||||
|
|
||||||
|
- name: Extract terraform archive
|
||||||
|
become: "{{ ext_become }}"
|
||||||
|
ansible.builtin.unarchive:
|
||||||
|
dest: "{{ path.archive }}/terraform"
|
||||||
|
src: "{{ d_tempdir.path }}/{{ terraform.file }}"
|
||||||
|
remote_src: true
|
||||||
@@ -3,5 +3,5 @@
|
|||||||
- name: Set carapace config
|
- name: Set carapace config
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
carapace:
|
carapace:
|
||||||
pkgs: "{{ pkgconfig.carapace.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.carapace.pkgs[ansible_os_family] }}"
|
||||||
repo: "{{ pkgconfig.carapace.repo[ansible_os_family] }}"
|
repo: "{{ pkgconfig.carapace.repo[ansible_os_family] }}"
|
||||||
|
|||||||
@@ -4,6 +4,6 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
neovide:
|
neovide:
|
||||||
name: neovide
|
name: neovide
|
||||||
deps: "{{ pkgconfig.neovide.build_deps[ansible_os_family] }}"
|
build_deps: "{{ pkgconfig.neovide.build_deps[ansible_os_family] }}"
|
||||||
vers: "{{ pkgconfig.neovide.version }}"
|
vers: "{{ pkgconfig.neovide.version }}"
|
||||||
locked: true
|
locked: true
|
||||||
|
|||||||
@@ -2,4 +2,4 @@
|
|||||||
- name: Set python3 config
|
- name: Set python3 config
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
python3:
|
python3:
|
||||||
pkgs: "{{ pkgconfig.python3.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.python3.pkgs[ansible_os_family] }}"
|
||||||
|
|||||||
@@ -3,4 +3,4 @@
|
|||||||
- name: Set rust config
|
- name: Set rust config
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
rust:
|
rust:
|
||||||
pkgs: "{{ pkgconfig.rust.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.rust.pkgs[ansible_os_family] }}"
|
||||||
|
|||||||
@@ -1,4 +1,17 @@
|
|||||||
|
- name: Set terraform install method
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
terraform:
|
||||||
|
method: "{{ pkgconfig.terraform.method[ansible_os_family] | default(pkgconfig.terraform.method.default) }}"
|
||||||
|
|
||||||
- name: Set terraform config
|
- name: Set terraform config
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
terraform:
|
terraform:
|
||||||
|
method: "{{ terraform.method }}"
|
||||||
pkgs: "{{ pkgconfig.terraform.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.terraform.pkgs[ansible_system] }}"
|
||||||
|
|
||||||
|
- name: Set terraform archive config
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
terraform:
|
||||||
|
method: "{{ terraform.method }}"
|
||||||
|
url: "{{ pkgconfig.terraform.baseurl }}/terraform/{{ pkgconfig.terraform.version }}"
|
||||||
|
file: "terraform_{{ pkgconfig.terraform.version }}_linux_amd64.zip"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
- name: Set tidy config
|
- name: Set tidy config
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
tidy:
|
tidy:
|
||||||
pkgs: "{{ pkgconfig.tidy.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.tidy.pkgs[ansible_os_family] }}"
|
||||||
|
|||||||
@@ -8,15 +8,20 @@
|
|||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: config/neovide.yml
|
file: config/neovide.yml
|
||||||
|
|
||||||
- name: Append neovide to pkg_sys and pkg_cargo
|
- name: Linux based neovide install
|
||||||
when:
|
when:
|
||||||
- ansible_system == 'Linux'
|
- ansible_system == 'Linux'
|
||||||
notify:
|
block:
|
||||||
- Depend cargo
|
- name: Append neovide build_deps to pkg_sys
|
||||||
changed_when: true
|
ansible.builtin.set_fact:
|
||||||
ansible.builtin.set_fact:
|
pkg_sys: "{{ pkg_sys + neovide.deps }}"
|
||||||
pkg_sys: "{{ pkg_sys + neovide.deps }}"
|
|
||||||
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
|
- name: Append neovide to pkg_cargo
|
||||||
|
notify:
|
||||||
|
- Depend cargo
|
||||||
|
changed_when: true
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_cargo: "{{ pkg_cargo + [neovide] }}"
|
||||||
|
|
||||||
- name: Append neovide to pkg_cask
|
- name: Append neovide to pkg_cask
|
||||||
when:
|
when:
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
- name: Append pandoc to pkg_sys
|
- name: Append pandoc to pkg_sys
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
|
pkg_sys: "{{ pkg_sys + ['pandoc'] }}"
|
||||||
|
|
||||||
- name: Set pandoc_configured
|
- name: Set pandoc_configured
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pandoc_configured: true
|
pandoc_configured: true
|
||||||
|
|||||||
@@ -1,14 +1,6 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- ansible.builtin.set_fact:
|
- name: Ensure directories exist
|
||||||
neovide_cargoversioned:
|
|
||||||
name: neovide
|
|
||||||
version: "{{ pkgconfig_neovide.version }}"
|
|
||||||
path: "{{ pkgconfig_neovide.install_prefix }}"
|
|
||||||
- ansible.builtin.set_fact:
|
|
||||||
cargoversioned: "{{ cargoversioned + [neovide_cargoversioned] }}"
|
|
||||||
|
|
||||||
- name: ensure directories exist
|
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: directory
|
state: directory
|
||||||
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}"
|
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}"
|
||||||
|
|||||||
@@ -1,15 +1,9 @@
|
|||||||
# vim: set filetype=yaml.ansible :
|
# vim: set filetype=yaml.ansible :
|
||||||
---
|
---
|
||||||
- name: Create temp path
|
|
||||||
ansible.builtin.tempfile:
|
|
||||||
state: directory
|
|
||||||
prefix: nvim.
|
|
||||||
register: d_nvim_tmp
|
|
||||||
|
|
||||||
- name: Clone neovim git repository
|
- name: Clone neovim git repository
|
||||||
ansible.builtin.git:
|
ansible.builtin.git:
|
||||||
depth: 1
|
depth: 1
|
||||||
dest: "{{ d_nvim_tmp.path }}/neovim"
|
dest: "{{ d_tempdir.path }}/neovim"
|
||||||
repo: "{{ pkgconfig_neovim.git_repo }}"
|
repo: "{{ pkgconfig_neovim.git_repo }}"
|
||||||
version: "{{ pkgconfig_neovim.version }}"
|
version: "{{ pkgconfig_neovim.version }}"
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ hyprcursor:
|
|||||||
- cairo-dev
|
- cairo-dev
|
||||||
- libzip-dev
|
- libzip-dev
|
||||||
- librsvg-dev
|
- librsvg-dev
|
||||||
- tomlpluplus-dev
|
- tomlplusplus-dev
|
||||||
build_installed_files:
|
build_installed_files:
|
||||||
- lib64/libhyprcursor.so.0.1.11
|
- lib64/libhyprcursor.so.0.1.11
|
||||||
- lib64/libhyprcursor.so.0
|
- lib64/libhyprcursor.so.0
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ libreoffice:
|
|||||||
default: sys
|
default: sys
|
||||||
Ubuntu: flatpak
|
Ubuntu: flatpak
|
||||||
Fedora: flatpak
|
Fedora: flatpak
|
||||||
|
Alpine: flatpak
|
||||||
MacOSX: cask
|
MacOSX: cask
|
||||||
flatpak:
|
flatpak:
|
||||||
name: org.libreoffice.LibreOffice
|
name: org.libreoffice.LibreOffice
|
||||||
|
|||||||
@@ -6,9 +6,26 @@ neovim:
|
|||||||
link_name: nvim
|
link_name: nvim
|
||||||
methods:
|
methods:
|
||||||
default: src
|
default: src
|
||||||
|
Alpine: src
|
||||||
Fedora: sys
|
Fedora: sys
|
||||||
Ubuntu: sys
|
Ubuntu: sys
|
||||||
MacOSX: sys
|
MacOSX: sys
|
||||||
pkgs:
|
pkgs:
|
||||||
default:
|
default:
|
||||||
- neovim
|
- neovim
|
||||||
|
build_deps:
|
||||||
|
RedHat: []
|
||||||
|
Debian: []
|
||||||
|
Darwin: []
|
||||||
|
Alpine:
|
||||||
|
- build-base
|
||||||
|
- cmake
|
||||||
|
- libuv-dev
|
||||||
|
- libuv
|
||||||
|
- libluv
|
||||||
|
- lua-luv-dev
|
||||||
|
- utf8proc-dev
|
||||||
|
- luajit-dev
|
||||||
|
- luajit
|
||||||
|
- lua-lpeg-dev
|
||||||
|
- unibilium-dev
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ python3:
|
|||||||
pkgs:
|
pkgs:
|
||||||
Darwin:
|
Darwin:
|
||||||
- python3
|
- python3
|
||||||
Linux:
|
RedHat:
|
||||||
- python3
|
- python3
|
||||||
- python3-pip
|
- python3-pip
|
||||||
|
Debian:
|
||||||
|
- python3
|
||||||
|
- python3-pip
|
||||||
|
Alpine:
|
||||||
|
- python3
|
||||||
|
- py3-pip
|
||||||
|
|||||||
@@ -2,6 +2,12 @@ rust:
|
|||||||
pkgs:
|
pkgs:
|
||||||
Darwin:
|
Darwin:
|
||||||
- rust
|
- rust
|
||||||
Linux:
|
Debian:
|
||||||
- rustc
|
- rustc
|
||||||
- cargo
|
- cargo
|
||||||
|
RedHat:
|
||||||
|
- rustc
|
||||||
|
- cargo
|
||||||
|
Alpine:
|
||||||
|
- rust
|
||||||
|
- cargo
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
terraform:
|
terraform:
|
||||||
|
version: 1.11.1
|
||||||
|
archive:
|
||||||
|
baseurl: https://releases.hashicorp.com
|
||||||
|
method:
|
||||||
|
default: sys
|
||||||
|
Alpine: archive
|
||||||
pkgs:
|
pkgs:
|
||||||
Linux:
|
Linux:
|
||||||
- terraform
|
- terraform
|
||||||
|
|||||||
@@ -2,5 +2,9 @@ tidy:
|
|||||||
pkgs:
|
pkgs:
|
||||||
Darwin:
|
Darwin:
|
||||||
- tidy-html5
|
- tidy-html5
|
||||||
Linux:
|
Alpine:
|
||||||
|
- tidyhtml
|
||||||
|
Debian:
|
||||||
|
- tidy
|
||||||
|
RedHat:
|
||||||
- tidy
|
- tidy
|
||||||
|
|||||||
Reference in New Issue
Block a user