In both templates/mongodb.conf.j2 and templates/monogod_init.conf.j2 the top of the file has:
This should be changed to:
{{ ansible_managed | comment }}
The reason for this change is, if ansible_managed is multi-lined the comment won't apply to everything, only the first line.
In both
templates/mongodb.conf.j2andtemplates/monogod_init.conf.j2the top of the file has:This should be changed to:
The reason for this change is, if
ansible_managedis multi-lined the comment won't apply to everything, only the first line.