diff --git a/tasks/runtime.yml b/tasks/runtime.yml index f70d86e8..54c7eec7 100644 --- a/tasks/runtime.yml +++ b/tasks/runtime.yml @@ -82,6 +82,14 @@ state: "{{ 'started' if openhpc_slurm_service_enabled | bool else 'stopped' }}" when: openhpc_slurm_service is not none +# Munge state could be unchanged but the service is not running. +# Handle that here. +- name: Ensure Munge services are enabled and started + service: + name: munge + enabled: "{{ openhpc_slurm_service_enabled | bool }}" + state: "{{ 'started' if openhpc_slurm_service_enabled | bool else 'stopped' }}" + # Install OpenHPC runtime - name: Ensure selected OpenHPC packages are installed yum: