Skip to content

Commit

Permalink
cleanup - debug switch
Browse files Browse the repository at this point in the history
  • Loading branch information
lecorguille committed Feb 12, 2021
1 parent ce17375 commit 7857fae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ bind_paths: []
# go variables
only_one_go_version: false
golang_gopath: /opt/go/packages

singularity_role_debug: false
16 changes: 10 additions & 6 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
- name: singularity | display singularity installed version
debug:
var: singularity_installed_version
when: singularity_role_debug

- name: singularity | compile the Singularity binary | mconfig
command: ./mconfig
Expand All @@ -122,9 +123,10 @@
- not ansible_check_mode
- singularity_installed_version.rc == 1

# - name: singularity | debug make
# debug:
# var: singularity_make
- name: singularity | debug make
debug:
var: singularity_make
when: singularity_role_debug

- name: singularity | compile the Singularity binary | make install
make:
Expand All @@ -139,9 +141,10 @@
- not ansible_check_mode
- singularity_installed_version.rc == 1

# - name: singularity | debug make install
# debug:
# var: singularity_make_install
- name: singularity | debug make install
debug:
var: singularity_make_install
when: singularity_role_debug

- name: singularity | check singularity installed version
command: 'singularity --version | grep "{{ singularity_version }}"'
Expand All @@ -154,6 +157,7 @@
- name: singularity | display singularity installed version
debug:
var: singularity_installed_version
when: singularity_role_debug

- name: singularity | config bind bind_path
lineinfile:
Expand Down

0 comments on commit 7857fae

Please sign in to comment.