2022-07-21 01:00:17 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Deploy consul configuration
|
2022-07-23 14:00:15 +02:00
|
|
|
template:
|
2022-08-01 16:00:18 +02:00
|
|
|
src: consul.hcl.j2
|
|
|
|
dest: "{{ consul_root_dir }}/etc/consul.hcl"
|
2022-07-23 14:00:15 +02:00
|
|
|
owner: root
|
|
|
|
group: "{{ consul_user }}"
|
2022-08-01 16:00:18 +02:00
|
|
|
mode: 0640
|
2022-08-01 19:00:22 +02:00
|
|
|
validate: consul validate -config-format=hcl %s
|
2022-07-23 14:00:15 +02:00
|
|
|
notify: restart consul
|
2022-07-21 01:00:17 +02:00
|
|
|
tags: consul
|