Skip to content

Commit 503bf25

Browse files
committed
fix check mode change
1 parent a92d8d2 commit 503bf25

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

roles/mongo/tasks/clusterconfig.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
<<<<<<< HEAD
32

43
- name: Debug replica settings
54
ansible.builtin.debug:
@@ -13,10 +12,6 @@
1312
verbosity: 2
1413
ignore_errors: true
1514

16-
=======
17-
# todo this weorks only for new deployments
18-
# rewrite so mongo config can be changed and cluster members can be added or removed
19-
>>>>>>> main
2015
- name: Check if hosts are in clustered
2116
ansible.builtin.command: mongosh --port {{ mongo_port }} --quiet --eval 'db.isMaster().hosts'
2217
register: check_cluster

roles/mongo/tasks/install.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
register: mongo_authentication_enabled
6565
changed_when: false
6666
ignore_errors: true
67+
check_mode: false # This can safely run in check mode because it is not changing anything
6768

6869
- name: Debug mongodb authentication check
6970
ansible.builtin.debug:

0 commit comments

Comments
 (0)