2020-11-10 21:17:11 +01:00
|
|
|
#jinja2: lstrip_blocks: "True", trim_blocks: "True"
|
2017-08-08 12:11:58 +02:00
|
|
|
# {{ ansible_managed }}
|
|
|
|
{% set definemerged = nft_define_default.copy() %}
|
2018-08-06 15:09:20 +02:00
|
|
|
{% set _ = definemerged.update(nft_define) %}
|
2017-08-08 12:11:58 +02:00
|
|
|
{% set _ = definemerged.update(nft_define_group) %}
|
2020-11-10 21:17:11 +01:00
|
|
|
{% if merged_groups and hostvars[inventory_hostname]['nft_combined_rules'].nft_define_group is defined%}
|
|
|
|
{% set _ = definemerged.update(hostvars[inventory_hostname]['nft_combined_rules'].nft_define_group) %}
|
|
|
|
{% endif %}
|
2017-08-08 12:11:58 +02:00
|
|
|
{% set _ = definemerged.update(nft_define_host) %}
|
|
|
|
|
|
|
|
{% for definition in definemerged.values() %}
|
2020-11-10 21:17:11 +01:00
|
|
|
{% if definition.desc is defined %}
|
2017-08-08 12:11:58 +02:00
|
|
|
# {{ definition.desc }}
|
2020-11-10 21:17:11 +01:00
|
|
|
{% else %}
|
2017-08-08 12:11:58 +02:00
|
|
|
# {{ definition.name }}
|
2020-11-10 21:17:11 +01:00
|
|
|
{% endif %}
|
2017-08-08 12:11:58 +02:00
|
|
|
define {{ definition.name }} = {{ definition.value }}
|
|
|
|
|
|
|
|
{% endfor %}
|