# AWX x Fortigate

**URL:** <https://forum.ansible.com/t/awx-x-fortigate/35266>\
**Category:** AWX Project\
**Tags:** azure, awx\
**Created:** [June 1, 2021, 7:36pm UTC](https://forum.ansible.com/t/awx-x-fortigate/35266 "2021-06-01T19:36:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Giffu](https://avatars.discourse-cdn.com/v4/letter/f/7feea3/32.png) [@Felipe\_Giffu](https://forum.ansible.com/u/Felipe_Giffu)\
**Post date:** [June 1, 2021, 7:36pm UTC](https://forum.ansible.com/t/awx-x-fortigate/35266/1 "2021-06-01T19:36:42Z")

</div>

Hello time.  
I am trying to communicate from Ansible AWX to FortiGate VM64-AZURE.

In fortigate I have already configured the changed user’s ansible key. I configured the user to have root privileges.

When I run the playbook, the error message is showing:

**TASK [gather basic system status facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*16:22:37**

**9**  
**fatal: [localhost]: FAILED! =\> {“changed”: false, “msg”: “fortiosapi module is required”}**

Below I will post the playbook I am using.  
**— -**  
**hosts: localhost**  
**vars:**  
**host: “172.22.X.X”**  
**username: “XXXX”**  
**password: “XXXX”**  
**vdom: “root”**

**tasks:**  
**- name: gather basic system status facts**  
**fortios\_facts:**  
**host: “{{ host }}”**  
**username: “{{ username }}”**  
**password: “{{ password }}”**  
**vdom: “{{ vdom }}”**  
**gather\_subset:**  
**- fact: ‘system\_status\_select’**  
**…**

I’m trying to understand how AWX communicates with FORTIGATE and how I can run the playbook without the error presented.  
Can someone help me?
