Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions roles/mongodb/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
# Copyright (c) 2024, Itential, Inc
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)
---
- name: Include tasks to validate variables
ansible.builtin.include_tasks:
file: validate-vars.yml
tags: always

# Set node type facts based on inventory group membership.
# mongodb_primary group hosts get the primary role with higher priority.
# mongodb_replica group hosts get the secondary role with lower priority.
Expand All @@ -16,6 +11,11 @@
mongodb_data_nodes: "{{ groups['mongodb_primary'] | default([]) + groups['mongodb_replica'] | default([]) }}"
mongodb_has_replicas: "{{ groups['mongodb_replica'] is defined and groups['mongodb_replica'] | length > 0 }}"

- name: Include tasks to validate variables
ansible.builtin.include_tasks:
file: validate-vars.yml
tags: always

# Installs all the necessary components and dependencies for MongoDB.
# This will start the server with the simplest config.
- name: Install MongoDB and all necessary components
Expand Down
Loading