haroonh, It doesn't appear to be an option in Ansible... that said, I
found a python module for fortimanager that does allow it... You can
create address objects with all the relevant details, add them to a
group and install the policy afterward.
Look at Ansible Galaxy... there is a collection of FortiOS and
Fortimanager modules available for download. If you're already figured
that out, great. The documentation isn't the greatest. Struggling
through some things with it myself.