diff --git a/roles/mongodb/defaults/main.yml b/roles/mongodb/defaults/main.yml index 4c4c2ba..f09f818 100644 --- a/roles/mongodb/defaults/main.yml +++ b/roles/mongodb/defaults/main.yml @@ -98,6 +98,7 @@ mongodb_systemlog_logrotate: rename # Logrota mongodb_systemlog_path: /var/log/mongodb/{{ mongodb_daemon_name }}.log # Log file to send write to instead of stdout # see https://www.mongodb.com/docs/v7.0/reference/configuration-options/#mongodb-setting-systemLog.verbosity mongodb_systemlog_verbosity: 0 +mongodb_systemlog_quiet: true ## operationProfiling Options mongodb_operation_profiling_slow_op_threshold_ms: 100 diff --git a/roles/mongodb/templates/mongod.conf.j2 b/roles/mongodb/templates/mongod.conf.j2 index 81e8c79..bc76fd1 100644 --- a/roles/mongodb/templates/mongod.conf.j2 +++ b/roles/mongodb/templates/mongod.conf.j2 @@ -80,6 +80,7 @@ storage: systemLog: verbosity: {{ mongodb_systemlog_verbosity }} + quiet: {{ mongodb_systemlog_quite | lower }} destination: {{ mongodb_systemlog_destination }} {% if mongodb_systemlog_destination == 'file' %} logAppend: {{ mongodb_systemlog_logappend | to_nice_json }}