a
name: render bootstrap_expect_intв шаблоне bootstrap_expect.j2 просто:
set_fact:
bootstrap_expect_int: "{{ lookup('template', './bootstrap_expect.j2') }}"
- name: combine consul_config with bootstrap_expect_int
set_fact:
consul_combined_config_json: "{{ consul_config | combine(bootstrap_expect_yaml) }}"
{
"bootstrap_expect": {{ consul_bootstrap_expect }}
}