- hosts: fortimanager00 collections: - fortinet.fortimanager connection: httpapi vars: ansible_httpapi_use_ssl: True ansible_httpapi_validate_certs: False ansible_httpapi_port: 443 tasks: - name: Configure dynamic mappings of device group fmgr_user_devicegroup_dynamicmapping: bypass_validation: False adom: ansible device-group: ansible-test # name state: present user_devicegroup_dynamicmapping: _if_unmanaged: 10 _scope: - name: FGT_AWS # need a valid device name vdom: root # need a valid vdom name under the device comment: ansible-comment member: ios-device