diff --git a/roles/quagga-ipv4/templates/quagga/bgpd.conf.j2 b/roles/quagga-ipv4/templates/quagga/bgpd.conf.j2
index f3829097..d87269e3 100644
--- a/roles/quagga-ipv4/templates/quagga/bgpd.conf.j2
+++ b/roles/quagga-ipv4/templates/quagga/bgpd.conf.j2
@@ -1,4 +1,4 @@
-! {{ ansible_header | comment }}
+{{ ansible_header | comment(decoration='! ') }}
 
 router bgp {{ bgp.as }}
 no synchronization
diff --git a/roles/quagga-ipv4/templates/quagga/zebra.conf.j2 b/roles/quagga-ipv4/templates/quagga/zebra.conf.j2
index 4f3b6367..1f3a31ca 100644
--- a/roles/quagga-ipv4/templates/quagga/zebra.conf.j2
+++ b/roles/quagga-ipv4/templates/quagga/zebra.conf.j2
@@ -1,4 +1,4 @@
-! {{ ansible_header | comment }}
+{{ ansible_header | comment(decoration='! ') }}
 
 hostname zebra
 password {{ zebra.password }}
diff --git a/roles/quagga-ipv6/templates/quagga/bgpd.conf.j2 b/roles/quagga-ipv6/templates/quagga/bgpd.conf.j2
index 2fe4a763..5021cade 100644
--- a/roles/quagga-ipv6/templates/quagga/bgpd.conf.j2
+++ b/roles/quagga-ipv6/templates/quagga/bgpd.conf.j2
@@ -1,4 +1,4 @@
-! {{ ansible_header | comment }}
+{{ ansible_header | comment(decoration='! ') }}
 
 router bgp {{ bgp.as }}
 no synchronization
diff --git a/roles/quagga-ipv6/templates/quagga/zebra.conf.j2 b/roles/quagga-ipv6/templates/quagga/zebra.conf.j2
index aa63898a..1db5e12d 100644
--- a/roles/quagga-ipv6/templates/quagga/zebra.conf.j2
+++ b/roles/quagga-ipv6/templates/quagga/zebra.conf.j2
@@ -1,4 +1,4 @@
-! {{ ansible_header | comment }}
+{{ ansible_header | comment(decoration='! ') }}
 
 hostname zebra
 password {{ zebra.password }}