Commit 8fc1b98f authored by Ryan Taylor's avatar Ryan Taylor

extra final check

parent a16daf10
......@@ -44,6 +44,20 @@
- fah_xmlconfig.changed or fah_defconfig.changed
- not fah_running_check.changed
# double check for a license before starting
- name: Check if a license was acquired
command: journalctl --since "6 hours ago" -u nvidia-gridd
register: gridd_logs
changed_when: false
check_mode: no
when: "'meta-terrafold_group_gpu_nodes' in group_names"
- name: Fail if no license was acquired
fail:
when:
- gridd_logs.stdout is not regex("License (acquired|renewed) successfully")
- "'meta-terrafold_group_gpu_nodes' in group_names"
- name: Ensure FAHClient is enabled and running
sysvinit:
name: "FAHClient"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment