diff --git a/defaults/main.yml b/defaults/main.yml index d9823635..be681ed7 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -157,7 +157,4 @@ mongo_operationprofiling: slowOpThresholdMs: "{{ mongodb_operation_profiling_slow_op_threshold_ms }}" mode: "{{ mongodb_operation_profiling_mode }}" -mongo_auditlog: - destination: file - format: "{{ mongodb_auditlog_format }}" - path: "{{ mongodb_auditlog_path }}" +mongo_auditlog: "{{ mongodb_auditlog }}" diff --git a/templates/mongod.conf.j2 b/templates/mongod.conf.j2 index 692ccc03..e76241f0 100644 --- a/templates/mongod.conf.j2 +++ b/templates/mongod.conf.j2 @@ -52,7 +52,7 @@ setParameter: {% if mongodb_auditlog %} auditLog: -{{ mongo_auditlog | to_nice_yaml(indent=2) | indent(width=2, first=True) }} +{{ mongo_auditlog_config | to_nice_yaml(indent=2) | indent(width=2, first=True) }} {% else %} #auditLog: {% endif %}