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?