That works thanks. I suppose what confused me a little was when trying to do this via command line I had to use grep..
[ansible@localhost exercises]$ ansible local -m setup -a 'filter=ansible_default_ipv4*' | grep address > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/6e35fb5c-687d-4f95-b0f2-75e4010925ee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.