Skip to content

Commit

Permalink
Add configuration parameter checks
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyphreak committed Oct 14, 2023
1 parent 8b93445 commit 2019d3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
cmd: which mongos
register: _mongos_query

- name: Verify configuration cluster configuration
ansible.builtin.fail:
msg: "Configuration cluster member set cannot be empty"
when: mongos_replicaset_config_members | length == 0

- name: Manage mongos configuration
ansible.builtin.template:
dest: "{{ mongos_config_file }}"
Expand Down

0 comments on commit 2019d3e

Please sign in to comment.