From 78f3626fee3a7babcf6106b02c0a10cd6411c51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 14 Aug 2019 10:57:04 -0400 Subject: [PATCH] add replicaSet argument to mondodb URI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ansible/prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/prod.yml b/ansible/prod.yml index b2aa839..0eb9333 100644 --- a/ansible/prod.yml +++ b/ansible/prod.yml @@ -8,4 +8,4 @@ post_tasks: - name: MongoDB URI string debug: - msg: 'mongodb://{{ mongodb_users[0].name }}:{{ mongodb_users[0].password }}@{{ dns_entry }}:{{ mongodb_net_port }}/{{ mongodb_users[0].database }}' + msg: 'mongodb://{{ mongodb_users[0].name }}:{{ mongodb_users[0].password }}@{{ dns_entry }}:{{ mongodb_net_port }}/{{ mongodb_users[0].database }}?replicaSet={{ mongodb_replication_replset }}'