diff --git a/geant_service_orchestrator/workflows/device/create_device.py b/geant_service_orchestrator/workflows/device/create_device.py
index 1a745762dd216eb4c870eb2db9e1901b3a509c50..b95f27bb04408acb7f794104251826cb8e443fac 100644
--- a/geant_service_orchestrator/workflows/device/create_device.py
+++ b/geant_service_orchestrator/workflows/device/create_device.py
@@ -114,8 +114,9 @@ def provision_device_dry(
     )
     out = r.stdout.read()
     out_splitted = out.splitlines()
-
-    return {"output": out_splitted}
+    #if r.rc != 0: 
+    #    raise ValueError("Ansible has failed")
+    return {"dry_run_output": out_splitted, "return_code": r.rc}
 
 
 @inputstep("Confirm step", assignee ="CHANGES")
@@ -156,7 +157,7 @@ def provision_device_real(
     out = r.stdout.read()
     out_splitted = out.splitlines()
 
-    return {"output": out_splitted}
+    return {"real_run_output": out_splitted, "return_code": r.rc}
 
 @workflow(
     "Create Device",