ansible_slurm/templates/generic.conf.j2
Nate Coraor d18c8f91ea Don't set a pid file on EL, and use omit instead of None as the
default since "{{ None }}" actually becomes an empty string (there isn't
a way to set a variable to None/null from a template block as far as I
can tell).
2019-03-27 16:24:43 -04:00

12 lines
336 B
Django/Jinja

##
## This file is maintained by Ansible - ALL MODIFICATIONS WILL BE REVERTED
##
{% set conf = lookup('vars', item.config) %}
{% for key in conf | sort %}
{% set val = conf[key] %}
{% if val is not none and val != omit %}
{{ key }}={{ 'yes' if val is sameas true else ('no' if val is sameas false else val) }}
{% endif %}
{% endfor %}