Nabil,
as Phil has mentioned, Ansible uses modules & depending which vendor's SDN solution you decide to use, you use the appropriate module.
You can find quite a few Cisco ACI & MSO modules ofr Ansible 2.9 or like in Cumulus just 1 module.
The closest you can get to a 'SDN' generic module would likely be the 'uri', where you can use the typical POST,DELETE,QUERY functions for API.
I have built Ansible playbooks using both ACI/MSO modules & the 'uri' module where either MSO module did not exist (pre-2.9 version) or I created some very specific plays where no module was available & the 'uri' fitted the need.
Hope this helps