forked from Deuxfleurs/infrastructure
11 lines
413 B
YAML
11 lines
413 B
YAML
- name: "Create consul configuration directory"
|
|
file: path=/etc/consul/ state=directory
|
|
|
|
- name: "Deploy consul configuration"
|
|
template: src=consul.json.j2 dest=/etc/consul/consul.json
|
|
|
|
- name: "Deploy consul systemd service"
|
|
copy: src=consul.service dest=/etc/systemd/system/consul.service
|
|
|
|
- name: "Enable consul systemd service at boot"
|
|
service: name=consul state=started enabled=yes daemon_reload=yes
|