diff --git a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml
index f5d65a81d83f9098328c5f0cd88fba756f991a26..6f3b3d19ce200b2bdccd60b606022c1509b4e5b1 100644
--- a/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml
+++ b/geant/gap_ansible/roles/iptrunk_checks/tasks/check_optical_levels.yaml
@@ -57,7 +57,7 @@
 
     - name: Parse SROS port optical output
       ansible.utils.cli_parse:
-        text: "{{out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'].split('\n')}}"
+        text: "{{ out.output['rpc-reply']['nokiaoper:results']['nokiaoper:md-cli-output-block'] }}"
         parser:
           name: ansible.netcommon.native
           template_path: "{{ role_path }}/templates/sros_show_port_optical.yaml"