Ansible-Playbook for fetch D-link switch Serial Number

Hello,

I have multiple network switch. i want to get serial number using ansible play book.
here i have tried but not succeed.

In below example i have output of so many lines i have get only Serial Number Please help me…

test.yml