From d7c4a4f2b98c48e4c95ec853717a11d309f5cf6b Mon Sep 17 00:00:00 2001 From: ZijianGuo <guozijn@gmail.com> Date: Fri, 21 Jun 2019 22:40:15 +0800 Subject: [PATCH] Replace merge_configs with merge_yaml for merge mongodb.conf Actually, 'mongodb.conf' is a yaml format configuration file. Do not use merge_configs to merge it. Change-Id: Id3c006df00c1e2d66472c2195781e01c640cab22 Signed-off-by: ZijianGuo <guozijn@gmail.com> --- ansible/roles/mongodb/tasks/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/mongodb/tasks/config.yml b/ansible/roles/mongodb/tasks/config.yml index e458f275fa..2c9b1d82f4 100644 --- a/ansible/roles/mongodb/tasks/config.yml +++ b/ansible/roles/mongodb/tasks/config.yml @@ -27,7 +27,7 @@ - Restart mongodb container - name: Copying over mongodb.conf - merge_configs: + merge_yaml: sources: - "{{ role_path }}/templates/{{ item.key }}.conf.j2" - "{{ node_custom_config }}/mongodb.conf"