blob: bdbf295492feaedeb25de3842f8d6747fcf99bca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
- 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
|