- 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 group of Internet Service. fmgr_firewall_internetservicegroup: bypass_validation: False adom: ansible state: present firewall_internetservicegroup: comment: 'ansible-comment1' member: 'ansible-test' # a valid internet service name name: 'ansible-test'