diff --git a/tasks/apache.yml b/tasks/apache.yml
index be6bf3e07cf11fe3c2c037312705b3dd4a221c2d..df0e606acfbba1386a80c2976dc414e2bf32f662 100644
--- a/tasks/apache.yml
+++ b/tasks/apache.yml
@@ -13,7 +13,7 @@
     dest: '/etc/apache2/sites-available/status{{ apache_conf_ext|default(".conf") }}'
     owner: 'root'
     group: 'root'
-    mode: 644
+    mode: '644'
   notify: "Restart Apache"
 
 - name: "Enable Apache Status Site"
diff --git a/tasks/configure.yml b/tasks/configure.yml
index 30a8d8528ead608905f5cc3d4754b2fbfa2884fe..a482faf0eecd610369b60906768972a4d2d32d83 100644
--- a/tasks/configure.yml
+++ b/tasks/configure.yml
@@ -28,7 +28,7 @@
     dest: '/etc/netdata/{{ item }}'
     owner: 'root'
     group: 'root'
-    mode: 644
+    mode: '644'
     backup: yes
   with_items:
     - 'health_alarm_notify.conf'