fixing documentation
This commit is contained in:
@@ -10,6 +10,28 @@
|
||||
ansible.builtin.set_fact:
|
||||
go_install_method: "{% if install_method in go_install_methods %}{{ install_method }}{% else %}{{ go_install_methods[0] }}{% endif %}"
|
||||
|
||||
- name: Configure go system installation
|
||||
when:
|
||||
- go_install_method == 'system'
|
||||
block:
|
||||
- name: Set go pkgname for linux
|
||||
when:
|
||||
- ansible_system == 'Linux'
|
||||
ansible.builtin.set_fact:
|
||||
go_pkgname: "{{ go_pkgname[ansible_os_family] }}"
|
||||
|
||||
- name: Set go pkgname for FreeBSD
|
||||
when:
|
||||
- ansible_os_family == 'FreeBSD'
|
||||
ansible.bulitin.set_fact:
|
||||
go_pkgname: "{{ go_pkgname[ansible_os_family][go_bsd_version] | default(go_pkgname[ansible_os_family]['default']) }}"
|
||||
|
||||
- name: Set go pkgname for Darwin/MacOS
|
||||
when:
|
||||
- ansible_os_family == 'Darwin'
|
||||
ansible.builtin.set_fact:
|
||||
go_pkgname: "{{ go_pkgname[ansible_os_family] }}"
|
||||
|
||||
- name: Configure go archive installation
|
||||
when:
|
||||
- go_install_method == 'archive'
|
||||
@@ -32,12 +54,19 @@
|
||||
go_extract_path: "{{ path_archive }}/go{{ go_archive_version }}"
|
||||
|
||||
- name: Finalize go archive install
|
||||
ansible.builtin.set_fact
|
||||
ansible.builtin.set_fact:
|
||||
go_archive_install:
|
||||
extract_path: "{{ go_extract_path }}"
|
||||
archive_url: "{{ go_archive_url }}"
|
||||
archive_name: "{{ go_archive }}"
|
||||
archive_checksum: "{{ go_archive_sums[go_archive_version][ansible_system][go_arch] }}"
|
||||
link_bin:
|
||||
- from: "{{ go_archive_path }}/go"
|
||||
to: "{{ path_go }}"
|
||||
force: true
|
||||
- from: "{{ path_go }}/bin/go"
|
||||
to: "{{ path_bin }}/go"
|
||||
force: true
|
||||
|
||||
- name: Queue go install
|
||||
block:
|
||||
@@ -45,7 +74,7 @@
|
||||
when:
|
||||
- go_install_method == 'system'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + ['go'] }}"
|
||||
pkg_sys: "{{ pkg_sys + [go_pkgname] }}"
|
||||
|
||||
- name: Install via archive
|
||||
when:
|
||||
|
||||
Reference in New Issue
Block a user