Skip to content

Commit

Permalink
go tarball cert validation variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermeindl committed Jan 14, 2024
1 parent e630e92 commit a1432d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions roles/golang/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ golang_arch: amd64
# Mirror to download the Go language SDK redistributable package from
golang_mirror: 'https://dl.google.com/go'

golang_mirror_validate_certs: false

# Base installation directory the Go language SDK distribution
golang_install_dir: '/usr/local/go'

Expand Down
2 changes: 1 addition & 1 deletion roles/golang/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
checksum: "{{ 'sha256:' + golang_sha256_checksum | default(omit) }}"
force: false
use_proxy: true
validate_certs: true
validate_certs: '{{ golang_mirror_validate_certs }}'
when: not golang_file_exists.stat.exists

- name: Extract golang_file archive
Expand Down
2 changes: 1 addition & 1 deletion roles/rocketchat/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rocketchat_version: 6.4.9
# rocketchat_tarball_remote: https://releases.rocket.chat/{{ rocketchat_version }}/download
rocketchat_tarball_remote: https://cdn-download.rocket.chat/build/rocket.chat-{{ rocketchat_version }}.tgz
rocketchat_tarball_fetch_timeout: 100
rocketchat_tarball_validate_remote_cert: true
rocketchat_tarball_validate_certs: true
rocketchat_service_user: rocketchat
rocketchat_service_group: rocketchat
rocketchat_service_environment: []
Expand Down
2 changes: 1 addition & 1 deletion roles/rocketchat/tasks/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
force: true
dest: "{{ rocketchat_source_file }}"
timeout: "{{ rocketchat_tarball_fetch_timeout }}"
validate_certs: "{{ rocketchat_tarball_validate_remote_cert }}"
validate_certs: "{{ rocketchat_tarball_validate_certs }}"
mode: 0644
owner: "{{ rocketchat_service_user }}"
group: "{{ rocketchat_service_group }}"
Expand Down

0 comments on commit a1432d4

Please sign in to comment.