If you want the commas removed you can do that too.

          - "{{ text_to_split1.replace(',','').split()[-3:] }}"
          - "{{ text_to_split2.replace(',','').split()[-3:] }}"

ok: [localhost] => {
    "msg": [
        [
            "0.02",
            "0.05",
            "0.00"
        ],
        [
            "1.08",
            "0.99",
            "1.05"
        ]
    ]
}


Walter
--
Walter Rowe, Division Chief
Infrastructure Services, OISM

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/B3FDACA1-CDB0-4C1C-B1D7-0AD7564C6186%40nist.gov.

Reply via email to