# Trying run playbook on fortigate firewalls, getting api error

**URL:** <https://forum.ansible.com/t/trying-run-playbook-on-fortigate-firewalls-getting-api-error/8304>\
**Category:** Get Help\
**Tags:** fortinet\
**Created:** [September 6, 2024, 7:46pm UTC](https://forum.ansible.com/t/trying-run-playbook-on-fortigate-firewalls-getting-api-error/8304 "2024-09-06T19:46:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![moinshaikh.sa](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@moinshaikh.sa](https://forum.ansible.com/u/moinshaikh.sa)\
**Post date:** [September 6, 2024, 7:46pm UTC](https://forum.ansible.com/t/trying-run-playbook-on-fortigate-firewalls-getting-api-error/8304/1 "2024-09-06T19:46:39Z")

</div>

Hi Experts,

i am new to anisble, i am trying to run playbook against fortigate firewall to get the list of policies which are having zero hits.

ansible - 2.17.1  
python 2.11.9

Below mentioned are my host file and playbook, when i run it i am getting error  
fatal: [FW1]: FAILED! =\> {“msg”: “unable to load API plugin for platform type fortinet.fortios”}

[fortigates]  
FW1 ansible\_host=10.10.10.10 ansible\_user=“test” ansible\_password=“Aa123123”

- hosts: FW1  
connection: httpapi  
vars:  
ansible\_httpapi\_use\_ssl: yes  
ansible\_httpapi\_validate\_certs: no  
ansible\_network\_os: fortinet.fortios  
tasks:
