Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
ad30a8307f
commit
f418990e84
85 changed files with 3520 additions and 2 deletions
15
roles/golang/molecule/default/verify.yml
Normal file
15
roles/golang/molecule/default/verify.yml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
---
|
||||
- name: Verify
|
||||
hosts: molecule
|
||||
vars:
|
||||
golang_version: 1.25.4
|
||||
tasks:
|
||||
- name: Get version
|
||||
ansible.builtin.command:
|
||||
cmd: /usr/local/go/bin/go version
|
||||
register: golang_version_cmd
|
||||
|
||||
- name: Compare versions
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- golang_version_cmd.stdout | regex_search('^go version go' + golang_version + ' linux/amd64') != ""
|
||||
Loading…
Add table
Add a link
Reference in a new issue