forked from bitlair/ansible
Automated changes from linter ;P
This commit is contained in:
parent
44b73a216f
commit
f7f04e7a41
65 changed files with 392 additions and 324 deletions
|
@ -3,18 +3,18 @@
|
|||
tags: go,go_install
|
||||
block:
|
||||
- name: Remove Debian Go package
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: golang
|
||||
autoremove: yes
|
||||
state: absent
|
||||
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: curl
|
||||
state: present
|
||||
|
||||
- name: Fetch Go latest version
|
||||
shell: "curl --silent --location https://go.dev/dl/ | grep -Eo 'go[0-9]+(\\.[0-9]+)+.linux' | sort -V | uniq | tail -1 | sed s/^go// | sed s/\\.linux$//"
|
||||
ansible.builtin.shell: "curl --silent --location https://go.dev/dl/ | grep -Eo 'go[0-9]+(\\.[0-9]+)+.linux' | sort -V | uniq | tail -1 | sed s/^go// | sed s/\\.linux$//"
|
||||
changed_when: false
|
||||
register: go_latest_version_shell
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue