Closed Lusitaniae closed 6 months ago
Hello @Lusitaniae,
Have you tried adding the main configuration file in the same command ?
consul validate {{ consul_config_path }}/config.json {{ consul_configd_path }}
I just opened a PR to add the configuration validation (cf https://github.com/ansible-community/ansible-consul/pull/565).
Ideally we'd have some validation task when updating template files
I'm trying something like this `
validate: "consul validate %s {{ consul_configd_path }}"
`
Which fails with:
Related to https://github.com/hashicorp/consul/issues/3897?