# vim: set filetype=yaml.ansible : --- - name: Set go configuration ansible.builtin.set_fact: do_install_go: false # defaults to false to save on having to set facts needlessly go: ver: "{{ pkgconfig.go.version }}" arch: "{{ pkgconfig_go.archmap[ansible_architecture] }}" sys: "{{ ansible_system | lower }}" ext: "{{ pkgconfig.go.extmap[ansible_system] }}" - name: Set go composite facts ansible.builtin.set_fact: go: ver: "{{ go.ver }}" arch: "{{ go.arch }}" sys: "{{ go.sys }}" ext: "{{ go.ext }}" archive: "go{{ go.ver }}.{{ go.sys }}-{{ go.arch }}.{{ pkgconfig_go.extmap[ansible_system] }}" sum: "{{ pkgconfig.go.sums[go.ver][ansible_system][go.arch] }}" url: "{{ pkgconfig.go.base_url }}/{{ go.archive }}" inst_path: "{{ paths.install }}/go"