Skip to content

Commit 7857fae

Browse files
committed
cleanup - debug switch
1 parent ce17375 commit 7857fae

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

defaults/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ bind_paths: []
1212
# go variables
1313
only_one_go_version: false
1414
golang_gopath: /opt/go/packages
15+
16+
singularity_role_debug: false

tasks/main.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
- name: singularity | display singularity installed version
9898
debug:
9999
var: singularity_installed_version
100+
when: singularity_role_debug
100101

101102
- name: singularity | compile the Singularity binary | mconfig
102103
command: ./mconfig
@@ -122,9 +123,10 @@
122123
- not ansible_check_mode
123124
- singularity_installed_version.rc == 1
124125

125-
# - name: singularity | debug make
126-
# debug:
127-
# var: singularity_make
126+
- name: singularity | debug make
127+
debug:
128+
var: singularity_make
129+
when: singularity_role_debug
128130

129131
- name: singularity | compile the Singularity binary | make install
130132
make:
@@ -139,9 +141,10 @@
139141
- not ansible_check_mode
140142
- singularity_installed_version.rc == 1
141143

142-
# - name: singularity | debug make install
143-
# debug:
144-
# var: singularity_make_install
144+
- name: singularity | debug make install
145+
debug:
146+
var: singularity_make_install
147+
when: singularity_role_debug
145148

146149
- name: singularity | check singularity installed version
147150
command: 'singularity --version | grep "{{ singularity_version }}"'
@@ -154,6 +157,7 @@
154157
- name: singularity | display singularity installed version
155158
debug:
156159
var: singularity_installed_version
160+
when: singularity_role_debug
157161

158162
- name: singularity | config bind bind_path
159163
lineinfile:

0 commit comments

Comments
 (0)