New in version 2.8.
| Parameter | Choices/Defaults | Comments |
|---|---|---|
| adom - / required | Default: "root" | The ADOM the configuration should belong to. |
| blind_add - |
| When adding a device, module will check if it exists, and skip if it does. If enabled, this option will stop the module from checking if it already exists, and blindly add the device. |
| device_ip - | The IP of the device being added to FortiManager. Supports both IPv4 and IPv6. | |
| device_password - | The password of the device being added to FortiManager. | |
| device_serial - | The serial number of the device being added to FortiManager. | |
| device_unique_name - | The desired "friendly" name of the device being added to FortiManager. | |
| device_username - | The username of the device being added to FortiManager. | |
| mode - |
| The desired mode of the specified object. |
Note
- name: DISCOVER AND ADD DEVICE FGT1
fmgr_device:
adom: "root"
device_username: "admin"
device_password: "admin"
device_ip: "10.10.24.201"
device_unique_name: "FGT1"
device_serial: "FGVM000000117994"
mode: "add"
blind_add: "enable"
- name: DISCOVER AND ADD DEVICE FGT2
fmgr_device:
adom: "root"
device_username: "admin"
device_password: "admin"
device_ip: "10.10.24.202"
device_unique_name: "FGT2"
device_serial: "FGVM000000117992"
mode: "delete"
Common return values are documented here, the following are the fields unique to this module:
| Key | Returned | Description |
|---|---|---|
| api_result string | always | full API response, includes status code and message |
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.9/modules/fmgr_device_module.html