Skip to content

Commit dfb2ec0

Browse files
author
Matt Pryor
committed
Add check to Zenith init task
1 parent abfd482 commit dfb2ec0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

roles/zenith_proxy/tasks/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
become: true
5858
become_user: "{{ zenith_proxy_podman_user }}"
5959
register: zenith_proxy_client_init
60+
changed_when: zenith_proxy_client_init.rc == 0
61+
failed_when: >-
62+
zenith_proxy_client_init.rc != 0 and
63+
"token has already been used" not in zenith_proxy_client_init.stderr
6064
6165
- name: Create systemd unit file for Zenith client
6266
template:

ui-meta/slurm-infra.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ parameters:
5656
default: true
5757
options:
5858
checkboxLabel: Enable cluster monitoring?
59+
# The permanent option indicates that once set to true the boolean cannot become false
60+
permanent: true
5961

6062
- name: cluster_run_validation
6163
label: Post-configuration validation

0 commit comments

Comments
 (0)