Skip to content

Commit

Permalink
Merge pull request #41 from mojaloop/fix/only-one-master
Browse files Browse the repository at this point in the history
fix when for only one master
  • Loading branch information
sijo5722-2021 authored Mar 12, 2024
2 parents e272fd8 + 0b07616 commit e10a6c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mojaloop/iac/roles/microk8s/tasks/configure-HA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@
- join_command_output.rc > 0

become: true
when:
- inventory_hostname != designated_host
- inventory_hostname in groups[microk8s_group_HA]
when: (inventory_hostname in groups[microk8s_group_HA]) and (inventory_hostname != designated_host or groups[microk8s_group_HA] | length == 1)

- name: configure cluster addons
include_tasks: addons.yml
Expand Down

0 comments on commit e10a6c7

Please sign in to comment.