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 %}
|
||||
|
||||
#processManagement:
|
||||
|
||||
{% if mongodb_authorization_enabled or mongodb_cluster_enabled %}
|
||||
security:
|
||||
{% if mongodb_authentication_enabled %}
|
||||
{% endif %}
|
||||
|
||||
{% if mongodb_authorization_enabled %}
|
||||
authorization: enabled
|
||||
{% endif %}
|
||||
{%if mongodb_cluster_enabled %}
|
||||
keyFile: {{ mongodb_replica_keyfile }}
|
||||
|
||||
|
||||
replication:
|
||||
oplogSizeMB: {{ mongodb_oplog_size }}
|
||||
replSetName: {{ mongodb_replicaset }}
|
||||
|
|
Loading…
Reference in New Issue