how to use ansible -m setup in playbook?

I want to use ansible -m setup in playbook to take ip information and I dont know how to do it

  • name: Setup information
    setup:

if using the defaults. Look at https://docs.ansible.com/ansible/latest/modules/setup_module.html

Please don’t spam this mailing list with repetitive queries.