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"