diff --git a/ansible/roles/oasys-ords/tasks/files.yml b/ansible/roles/oasys-ords/tasks/files.yml
index 38487c314..4973ab7dd 100644
--- a/ansible/roles/oasys-ords/tasks/files.yml
+++ b/ansible/roles/oasys-ords/tasks/files.yml
@@ -70,4 +70,4 @@
     name: "maintenance_message"
     minute: "*/2" # every 10 mins
     user: root
-    job: "su oracle -c 'echo \"<p>$({{ oasys_ords_get_maintenance_msg_command }})</p>\" > {{ oasys_ords_maintenance_message_file }}'"
+    job: 'su oracle -c ''echo "<p>$({{ oasys_ords_get_maintenance_msg_command }})</p>" > {{ oasys_ords_maintenance_message_file }}'''