how can I config fortigate device with os version below 5.6

Hello everyone,

I want to use ansibl to config fortigate device,but the device fireware version is below 5.6
I found ansible module that can deploy fortigate are all using fortiapi to do it,so FortiGate versions are supported from 5.6 onwards .
Does there has anyway can help me use ansible to deploy fortigate device with 5.0~5.4 version ?