Because https://github.com/stackhpc/ansible-role-openhpc/blob/master/templates/slurm.conf.j2#L134 defaults to setting a partition to Default=YES if a group/partition in openhpc_slurm_partitions does not define the default parameter, in a case like this the second partition still ends up being the actual default in slurm:
openhpc_slurm_partitions:
- name: first
default: YES
- name: second
and second has to specifically be marked default: NO to make the first the default.
Because https://github.com/stackhpc/ansible-role-openhpc/blob/master/templates/slurm.conf.j2#L134 defaults to setting a partition to
Default=YESif a group/partition inopenhpc_slurm_partitionsdoes not define thedefaultparameter, in a case like this the second partition still ends up being the actual default in slurm:and
secondhas to specifically be markeddefault: NOto make the first the default.