Skip to content

Commit

Permalink
fix: disable no log on Set default read-write concern
Browse files Browse the repository at this point in the history
  • Loading branch information
heryheming authored Dec 30, 2024
1 parent e97e47a commit d054d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
ansible.builtin.command: "{{ 'mongosh' if mongodb_version.split('.')[0] | int >= 5 else 'mongo' }} --quiet -u {{ mongodb_root_admin_name }} -p {{ mongodb_root_admin_password }} --eval 'db.adminCommand({\"setDefaultRWConcern\": 1,\"defaultWriteConcern\": { \"w\": 1 }})'"
when: ( mongodb_replication_replset | length > 0
and mongodb_master is defined and mongodb_master )
no_log: true
no_log: false
tags: [mongodb]

- name: Include replication configuration
Expand Down

0 comments on commit d054d00

Please sign in to comment.