{% if vault_agent_consul.consul_pki.enabled %} template { source = "{{ vault_agent_root_dir }}/templates/consul/agent_bundle.pem.tpl" destination = "{{ consul_root_dir }}/tls/agent_bundle.pem" left_delimiter = "[[" right_delimiter = "]]" perms = 0640 exec { command = ["systemctl", "reload", "consul"] } } {% endif %}