Skip to content

Commit

Permalink
add proxy for go with variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 14, 2024
1 parent 81a463b commit 3f36452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/golang/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ golang_arch: amd64
golang_mirror: 'https://dl.google.com/go'

golang_mirror_validate_certs: true
golang_mirror_use_proxy: true

# Base installation directory the Go language SDK distribution
golang_install_dir: '/usr/local/go'
Expand Down
1 change: 1 addition & 0 deletions roles/golang/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
mode: 0644
checksum: "{{ 'sha256:' + golang_sha256_checksum | default(omit) }}"
force: false
use_proxy: '{{ golang_mirror_use_proxy }}'
validate_certs: '{{ golang_mirror_validate_certs }}'
when: not golang_file_exists.stat.exists

Expand Down

0 comments on commit 3f36452

Please sign in to comment.