You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
A cleaner method would be to find the latest release from the goss repo and pull that down. For example, this is a method I use a lot in my ansible stuff
# https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64
# https://github.com/aelsabbahy/goss/releases/download/v0.3.16/goss-linux-amd64.sha256
- name: Get latest release
uri:
url: "https://api.github.com/repos/aelsabbahy/goss/releases/latest"
method: GET
return_content: true
status_code: 200
body_format: json
validate_certs: false
user: "{{ lookup('env', 'GH_USER') | default(omit) }}"
password: "{{ lookup('env', 'GH_TOKEN') | default(omit) }}"
register: _latest_release
until: _latest_release.status == 200
retries: 5
- name: "Set goss_version to {{ _latest_release.json.tag_name[1:] }}"
set_fact:
goss_version: "{{ _latest_release.json.tag_name[1:] }}"
when: _latest_release is defined
# Can do some magic here to handle multiple architectures
- name: Get checksum for amd64
set_fact:
goss_checksum: "{{ item.split(' ')[0] }}"
with_items:
- "{{ lookup('url', 'https://github.com/aelsabbahy/goss/releases/download/v' + goss_version + '/goss-linux-amd64.sha256', wantlist=True) | list }}"
- name: Download and install Goss
get_url:
url: "https://github.com/aelsabbahy/goss/releases/download/{{ goss_version }}/goss-linux-{{ goss_arch }}"
dest: "{{ goss_bin }}"
checksum: "sha256:{{ goss_sha256sum }}"
mode: 0755
Right now the goss release to be pulled in the verify.yml is hard-coded to 0.3.16
A cleaner method would be to find the latest release from the goss repo and pull that down. For example, this is a method I use a lot in my ansible stuff
Here's a sample run
The text was updated successfully, but these errors were encountered: