Skip to content

Commit 4f2f5cb

Browse files
committed
Update
1 parent bca0a31 commit 4f2f5cb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

consul-sevice-discovery/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,15 @@ terraform apply
1313
```
1414
## Configure Instances Using Ansible
1515

16+
Configure Backends
17+
18+
```
19+
ansible-playbook -e "start_join=172.31.26.233" backends.yaml
20+
```
21+
22+
Configure Load Balancer
23+
24+
```
25+
ansible-playbook -e "consul_server_address=172.31.31.142:8500" load-balancer.yaml
26+
```
27+

consul-sevice-discovery/ansible/roles/load-balancer/tasks/consul.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@
77
url: "{{ consul_template_url }}"
88
dest: /tmp/consul-template.zip
99
mode: 0644
10+
11+
- name: Unpack zip file
12+
apt:
13+
name: unzip
14+
state: latest
15+
1016

1117
# Note that remote_src is set to yes in the unarchive module, which means the archive file is located on the remote host, not on the control node.
1218

0 commit comments

Comments
 (0)