fix alpine packages
- update terraform package version
This commit is contained in:
@@ -15,5 +15,5 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
terraform:
|
terraform:
|
||||||
method: "{{ terraform.method }}"
|
method: "{{ terraform.method }}"
|
||||||
url: "{{ pkgconfig.terraform.archive.baseurl }}/terraform/{{ pkgconfig.terraform.version }}"
|
url: "{{ pkgconfig.terraform.archive.baseurl }}/{{ pkgconfig.terraform.version }}"
|
||||||
file: "terraform_{{ pkgconfig.terraform.version }}_linux_amd64.zip"
|
file: "terraform_{{ pkgconfig.terraform.version }}_linux_amd64.zip"
|
||||||
|
|||||||
@@ -1,4 +1,22 @@
|
|||||||
- name: Set terraformls config
|
# vim: set filetype=yaml.ansible :
|
||||||
|
---
|
||||||
|
- name: Set terraformls install method
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
terraformls:
|
terraformls:
|
||||||
|
method: "{{ pkgconfig.terraformls.method[ansible_os_family] | default(pkgconfig.terraformls.method.default) }}"
|
||||||
|
|
||||||
|
- name: Set terraformls config
|
||||||
|
when:
|
||||||
|
- terraform.method == 'sys'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
terraformls:
|
||||||
|
method: "{{ terraformls.method }}"
|
||||||
pkgs: "{{ pkgconfig.terraformls.pkgs[ansible_system] }}"
|
pkgs: "{{ pkgconfig.terraformls.pkgs[ansible_system] }}"
|
||||||
|
|
||||||
|
- name: Set terraformls config
|
||||||
|
when:
|
||||||
|
- terraform.method == 'gosrc'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
terraformls:
|
||||||
|
method: "{{ terraformls.method }}"
|
||||||
|
gopkg: "{{ pkgconfig.terraformls.gobase }}@{{ pkgconfig.terraformls.version }}"
|
||||||
|
|||||||
@@ -23,12 +23,6 @@
|
|||||||
- pkg_flatpak|length > 0
|
- pkg_flatpak|length > 0
|
||||||
become: "{{ ext_become }}"
|
become: "{{ ext_become }}"
|
||||||
block:
|
block:
|
||||||
- name: Debug flatpak
|
|
||||||
loop: "{{ pkg_flatpak | unique }}"
|
|
||||||
loop_control:
|
|
||||||
loop_var: flatpak
|
|
||||||
ansible.builtin.debug:
|
|
||||||
var: flatpak
|
|
||||||
- name: Install flatpak
|
- name: Install flatpak
|
||||||
loop: "{{ pkg_flatpak | unique }}"
|
loop: "{{ pkg_flatpak | unique }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
file: config/terraform.yml
|
file: config/terraform.yml
|
||||||
|
|
||||||
- name: Append terraform
|
- name: Append terraform
|
||||||
|
when:
|
||||||
|
- terraform.method == 'sys'
|
||||||
block:
|
block:
|
||||||
- name: Append terraform to pkg_tap
|
- name: Append terraform to pkg_tap
|
||||||
when:
|
when:
|
||||||
@@ -28,6 +30,12 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
pkg_sys: "{{ pkg_sys + terraform.pkgs }}"
|
||||||
|
|
||||||
|
- name: Append terraform to pkg_archive
|
||||||
|
when:
|
||||||
|
- terraform.method == 'archive'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_archive: "{{ pkg_archive + ['terraform'] }}"
|
||||||
|
|
||||||
- name: Set terraform_configured
|
- name: Set terraform_configured
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
terraform_configured: true
|
terraform_configured: true
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
file: config/terraformls.yml
|
file: config/terraformls.yml
|
||||||
|
|
||||||
- name: Append terraformls
|
- name: Append terraformls
|
||||||
|
when:
|
||||||
|
- terraformls.method == 'sys'
|
||||||
block:
|
block:
|
||||||
- name: Append terraformls to pkg_tap
|
- name: Append terraformls to pkg_tap
|
||||||
when:
|
when:
|
||||||
@@ -28,6 +30,12 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
pkg_sys: "{{ pkg_sys + terraformls.pkgs }}"
|
||||||
|
|
||||||
|
- name: Append terraformls to pkg_go
|
||||||
|
when:
|
||||||
|
- terraform.method == 'gosrc'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_go: "{{ pkg_go + [terraformls.gopkg] }}"
|
||||||
|
|
||||||
- name: Set terraformls_configured
|
- name: Set terraformls_configured
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
terraformls_configured: true
|
terraformls_configured: true
|
||||||
|
|||||||
@@ -15,3 +15,5 @@ libreoffice:
|
|||||||
- libreoffice
|
- libreoffice
|
||||||
Darwin:
|
Darwin:
|
||||||
- libreoffice
|
- libreoffice
|
||||||
|
Alpine:
|
||||||
|
- libreoffice
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ neovim:
|
|||||||
- cmake
|
- cmake
|
||||||
- coreutils
|
- coreutils
|
||||||
- curl
|
- curl
|
||||||
- gettext-tiny-dev
|
- gettext-dev
|
||||||
build_installed_files:
|
build_installed_files:
|
||||||
- share/man/man1/nvim.1
|
- share/man/man1/nvim.1
|
||||||
- share/nvim/runtime/lua/jit/bc.lua
|
- share/nvim/runtime/lua/jit/bc.lua
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
terraform:
|
terraform:
|
||||||
version: 1.11.1
|
version: 1.11.2
|
||||||
archive:
|
archive:
|
||||||
baseurl: https://releases.hashicorp.com
|
baseurl: https://releases.hashicorp.com/terraform
|
||||||
method:
|
method:
|
||||||
default: sys
|
default: sys
|
||||||
Alpine: archive
|
Alpine: archive
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
terraformls:
|
terraformls:
|
||||||
|
version: v0.36.4
|
||||||
|
gobase: github.com/hashicorp/terraform-ls
|
||||||
|
method:
|
||||||
|
default: sys
|
||||||
|
Alpine: gosrc
|
||||||
pkgs:
|
pkgs:
|
||||||
Linux:
|
Linux:
|
||||||
- terraform-ls
|
- terraform-ls
|
||||||
|
|||||||
Reference in New Issue
Block a user