Skip to content

Commit b66d316

Browse files
authored
Hotfix/mongo cluster error (#630)
temporarily disable cluster part so we can deploy config changes, fix cluster later
1 parent b11590c commit b66d316

3 files changed

Lines changed: 6 additions & 11 deletions

File tree

environments/template/group_vars/template.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22

33
env: "%env%"
4-
show_debug_info: false # Show extra debug info
54
mariadb_host: localhost
65
rsyslog_host: localhost
76
database_clients: [ "{{ mariadb_host }}" ]

roles/mongo/tasks/clusterconfig.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,19 @@
88
check_mode: false
99

1010
- name: Debug check_cluster variable
11-
when: show_debug_info is defined and show_debug_info | bool
1211
ansible.builtin.debug:
1312
msg: "{{ check_cluster }}"
13+
verbosity: 2
1414

1515
- name: Debug mongo_cluster_members variable
16-
when: show_debug_info is defined and show_debug_info | bool
1716
ansible.builtin.debug:
1817
msg: "{{ mongo_cluster_members }}"
18+
verbosity: 2
1919

2020
- name: Debug mongo_replication_role variable
21-
when: show_debug_info is defined and show_debug_info | bool
2221
ansible.builtin.debug:
2322
msg: "{{ mongo_replication_role }}"
24-
25-
- name: Debug host_id
26-
ansible.builtin.debug:
27-
msg: "{{ hostid }}"
23+
verbosity: 2
2824

2925
- name: Initial cluster initialisation
3026
community.mongodb.mongodb_replicaset:

roles/mongo/tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
ansible.builtin.include_tasks:
1818
file: certs.yml
1919

20-
- name: Include cluster installation tasks
21-
ansible.builtin.include_tasks:
22-
file: clusterconfig.yml
20+
# - name: Include cluster installation tasks
21+
# ansible.builtin.include_tasks:
22+
# file: clusterconfig.yml
2323

2424
- name: Include user creation
2525
ansible.builtin.include_tasks:

0 commit comments

Comments
 (0)