Closed refriedjello closed 10 months ago
@refriedjello fortios_configuration_fact is used to retrieve the information about a specific module.
Here's an example:
- hosts: fortigates
collections:
- fortinet.fortios
connection: httpapi
vars:
vdom: "root"
ansible_httpapi_use_ssl: yes
ansible_httpapi_validate_certs: no
ansible_httpapi_port: 443
tasks:
- name: get hardware nic info
fortios_configuration_fact:
selectors:
- selector: hardware_nic
fortios_hardware_nic is used to update the information.
Hi @refriedjello
I will close this issue as it's been a while and no further updates or responses have been received, indicating that the matter has likely been resolved or is no longer active.
If you have any further questions or concerns, please feel free to reopen the ticket or create a new one.
I have been trying to get the module
fortios_hardware_nic
working to display NIC information but so far have been unsuccessful.I am able to interact with my FortiGate using other modules, so connectivity and authentication is successful.
My lab FortiGate is a 201E running 6.2.10 and is running VDOMs. I would like to display NIC status information for the NIC "mgmt" which is owned by the VDOM "root". I am using Ansible version 2.11.3 and collection fortinet.fortios is version 2.1.4.
Here is my playbook task:
When I run that I get this error:
The error says "Remote end closed connection without response" but as mentioned, I am able to get other modules to work against this same FortiGate.
Thanks!