forked from ISTI-ansible-roles/ansible-roles
add condition on security field of configuration file
This commit is contained in:
parent
4fd6347352
commit
6cfef59871
|
@ -42,15 +42,16 @@ net:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
#processManagement:
|
#processManagement:
|
||||||
|
{% if mongodb_authorization_enabled or mongodb_cluster_enabled %}
|
||||||
security:
|
security:
|
||||||
{% if mongodb_authentication_enabled %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if mongodb_authorization_enabled %}
|
||||||
authorization: enabled
|
authorization: enabled
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%if mongodb_cluster_enabled %}
|
{%if mongodb_cluster_enabled %}
|
||||||
keyFile: {{ mongodb_replica_keyfile }}
|
keyFile: {{ mongodb_replica_keyfile }}
|
||||||
|
|
||||||
|
|
||||||
replication:
|
replication:
|
||||||
oplogSizeMB: {{ mongodb_oplog_size }}
|
oplogSizeMB: {{ mongodb_oplog_size }}
|
||||||
replSetName: {{ mongodb_replicaset }}
|
replSetName: {{ mongodb_replicaset }}
|
||||||
|
|
Loading…
Reference in New Issue