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.
Broad. Integrated. Automated.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.