Skip to content

Commit 71e3396

Browse files
committed
Display go version
Singularity - fix idempotence
1 parent 24d8835 commit 71e3396

File tree

3 files changed

+16
-32
lines changed

3 files changed

+16
-32
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ jobs:
4444
distro:
4545
- centos8
4646
- centos7
47-
- ubuntu1804
4847
- ubuntu2004
48+
- ubuntu1804
4949

5050
steps:
5151
- name: Check out the codebase.

molecule/default/version.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

tasks/main.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
GOROOT: '{{ golang_install_dir }}'
5656
GOPATH: '{{ golang_gopath }}'
5757
register: go_versions
58+
changed_when: false
5859

5960
- name: singularity | display Go version
6061
debug:
@@ -91,6 +92,20 @@
9192
changed_when: false
9293
failed_when: false
9394

95+
- name: singularity | display singularity installed version
96+
debug:
97+
var: singularity_installed_version
98+
99+
- name: singularity | check singularity installed version
100+
command: 'singularity version | grep "{{ singularity_version }}"'
101+
register: singularity_installed_version
102+
changed_when: false
103+
failed_when: false
104+
105+
- name: singularity | display singularity installed version
106+
debug:
107+
var: singularity_installed_version
108+
94109
- name: singularity | compile the Singularity binary | mconfig
95110
command: ./mconfig
96111
args:

0 commit comments

Comments
 (0)