diff --git a/ansible/roles/swift/templates/object.conf.j2 b/ansible/roles/swift/templates/object.conf.j2
index ae4f08fd57..bd8b25fa92 100644
--- a/ansible/roles/swift/templates/object.conf.j2
+++ b/ansible/roles/swift/templates/object.conf.j2
@@ -23,8 +23,8 @@ use = egg:swift#object
 [object-auditor]
 {% endif %}
 
-{% if service_name == 'swift-object-replicator' %}
 [object-replicator]
+{% if service_name == 'swift-object-replicator' %}
 sync_module = {replication_ip}:{meta}:object
 {% endif %}