nomad/ansible/roles/configure-consul/tasks/configure.yml
2022-12-08 01:57:33 +00:00

28 lines
554 B
YAML

---
- name: Copy consul base configuration
become: true
template:
src: consul.hcl.j2
dest: /etc/consul.d/consul.hcl
owner: consul
group: consul
mode: 0640
- name: Copy consul-server configuration
become: true
template:
src: consul-server.hcl.j2
dest: /etc/consul.d/consul-server.hcl
owner: consul
group: consul
mode: 0640
- name: Copy consul systemd unit file
become: true
template:
src: consul.service
dest: /etc/systemd/system/consul.service
owner: root
group: root
mode: 0644