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