Skip to content

Commit 37c5a2b

Browse files
committed
fix ansible-lint errors
1 parent b95aa6f commit 37c5a2b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

ansible/roles/openondemand/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,5 +106,5 @@ openondemand_osc_ood_defaults:
106106
openondemand_code_server_version: 4.102.2
107107
openondemand_rstudio_version: 2025.05.1-513
108108
openondemand_matlab_version: ''
109-
# Below
110-
openondemand_gres_options: "{{ _openondemand_sinfo_gres.stdout | to_gres_options }}"
109+
# Below is automatically calculated during role run:
110+
openondemand_gres_options: "{{ _openondemand_sinfo_gres.stdout | to_gres_options }}"

ansible/roles/openondemand/tasks/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,9 @@
4040
public: true
4141

4242
- name: Get GRES information
43-
command:
43+
ansible.builtin.command:
4444
cmd: sinfo --noheader --format "%R %G" # can't use , or : as separator
45+
changed_when: true
4546
register: _openondemand_sinfo_gres
4647

4748
- ansible.builtin.include_role:

0 commit comments

Comments
 (0)