I already used it, but still im getting output in this format which i cannot filter it ...

tasks:
- name: print date
set_fact: temp="{{lookup('pipe','date \"+%Y-%m-%d-%H-%M\"')}}"
- name: creates file
file:
path: "/tmp/loadbalancer_{{ temp }}.csv"
state: touch
- name: creates file
file:
path: "/tmp/loadbalancer_{{ temp }}.txt"
state: touch
- name: print date
set_fact: files="loadbalancer_{{ temp }}.csv"
- name: Run Health Checks on LoadBalancer servers
bigip_command:
commands:
- show sys version
- show sys service | grep tmm
- show ltm
- show sys memory
provider:
server: xxxx.xxxx
password: "{{ xxxxx }}"
user: "{{ xxxxx }}"
validate_certs: no
register: version
delegate_to: localhost
- name: Updating variable
copy: content="{{ version.stdout_lines | to_nice_yaml }}" dest="/tmp/loadbalancer_{{ temp }}.txt"
- name: Parse the CSV file
shell:
cmd: |
cp -f "/tmp/loadbalancer_{{ temp }}.txt" /tmp/temp.txt
cat /tmp/temp.txt| tr -s '[:blank:]' ' ' > "/tmp/loadbalancer_{{ temp }}.csv"