Skip to content

Commit b30c2bf

Browse files
committed
config: change format of supplying auditlog config
this is done to be able to add auditlog filters
1 parent a79083b commit b30c2bf

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

defaults/main.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,4 @@ mongo_operationprofiling:
157157
slowOpThresholdMs: "{{ mongodb_operation_profiling_slow_op_threshold_ms }}"
158158
mode: "{{ mongodb_operation_profiling_mode }}"
159159

160-
mongo_auditlog:
161-
destination: file
162-
format: "{{ mongodb_auditlog_format }}"
163-
path: "{{ mongodb_auditlog_path }}"
160+
mongo_auditlog: "{{ mongodb_auditlog }}"

templates/mongod.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ setParameter:
5252

5353
{% if mongodb_auditlog %}
5454
auditLog:
55-
{{ mongo_auditlog | to_nice_yaml(indent=2) | indent(width=2, first=True) }}
55+
{{ mongo_auditlog_config | to_nice_yaml(indent=2) | indent(width=2, first=True) }}
5656
{% else %}
5757
#auditLog:
5858
{% endif %}

0 commit comments

Comments
 (0)