Skip to content

Commit

Permalink
deployment: Assert that there is only one HAProxy server
Browse files Browse the repository at this point in the history
Currently we are not deploying any failover mechanism such as keepalived,
so limit to one HAProxy server.
  • Loading branch information
markgoddard committed Apr 17, 2024
1 parent 4e09ed0 commit 68b0c08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions deployment/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,13 @@
- haproxy
become: true
tasks:
# Currently we are not deploying any failover mechanism such as keepalived,
# so limit to one HAProxy server.
- name: Assert that there is only one HAProxy server
ansible.builtin.assert:
that:
groups['haproxy'] | length == 1

- name: Ensure /etc/haproxy directory exists
ansible.builtin.file:
path: /etc/haproxy
Expand Down

0 comments on commit 68b0c08

Please sign in to comment.