mirror of
https://gitea.0xace.cc/ansible-galaxy/keepalived.git
synced 2025-06-28 18:03:08 +00:00
fix template override
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
global_defs {
|
||||
{% if keepalived_config.vrrp_script is defined %}
|
||||
{% if keepalived_combined_config.vrrp_script is defined %}
|
||||
enable_script_security
|
||||
script_user {{ keepalived_script_user }}
|
||||
{% endif %}
|
||||
{% for key, value in keepalived_config.global_defs.items() %}
|
||||
{% for key, value in keepalived_combined_config.global_defs.items() %}
|
||||
{% if value | type_debug != 'list' %}
|
||||
{{key}} {{value}}
|
||||
{% else %}
|
||||
@ -14,10 +14,10 @@ global_defs {
|
||||
{% endfor %}
|
||||
}
|
||||
|
||||
{% if keepalived_config.vrrp_script is defined %}
|
||||
{% for vrrp_script in keepalived_config.vrrp_script %}
|
||||
{% if keepalived_combined_config.vrrp_script is defined %}
|
||||
{% for vrrp_script in keepalived_combined_config.vrrp_script %}
|
||||
vrrp_script {{ vrrp_script }} {
|
||||
{% for key, value in keepalived_config.vrrp_script[vrrp_script].items() %}
|
||||
{% for key, value in keepalived_combined_config.vrrp_script[vrrp_script].items() %}
|
||||
{% if value | type_debug != 'list' %}
|
||||
{{key}} {{value}}
|
||||
{% else %}
|
||||
@ -30,10 +30,10 @@ vrrp_script {{ vrrp_script }} {
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% if keepalived_config.vrrp_track_process is defined %}
|
||||
{% for vrrp_track_process in keepalived_config.vrrp_track_process %}
|
||||
{% if keepalived_combined_config.vrrp_track_process is defined %}
|
||||
{% for vrrp_track_process in keepalived_combined_config.vrrp_track_process %}
|
||||
vrrp_track_process {{ vrrp_track_process }} {
|
||||
{% for key, value in keepalived_config.vrrp_track_process[vrrp_track_process].items() %}
|
||||
{% for key, value in keepalived_combined_config.vrrp_track_process[vrrp_track_process].items() %}
|
||||
{% if value | type_debug != 'list' %}
|
||||
{{key}} {{value}}
|
||||
{% else %}
|
||||
@ -46,9 +46,9 @@ vrrp_track_process {{ vrrp_track_process }} {
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
{% for vrrp_instance in keepalived_config.vrrp_instance %}
|
||||
{% for vrrp_instance in keepalived_combined_config.vrrp_instance %}
|
||||
vrrp_instance {{ vrrp_instance }} {
|
||||
{% for key, value in keepalived_config.vrrp_instance[vrrp_instance].items() %}
|
||||
{% for key, value in keepalived_combined_config.vrrp_instance[vrrp_instance].items() %}
|
||||
{% if value | type_debug != 'list' %}
|
||||
{{key}} {{value}}
|
||||
{% else %}
|
||||
|
Reference in New Issue
Block a user