- name: gathering fortimanager facts hosts: fortimanager00 gather_facts: no connection: httpapi collections: - fortinet.fortimanager vars: ansible_httpapi_use_ssl: True ansible_httpapi_validate_certs: False ansible_httpapi_port: 443 tasks: - name: retrieve all the replacement message table entries of replacement message group fmgr_fact: facts: selector: 'system_replacemsggroup_custommessage' # available only when group-type is set to 'utm' in replacemsg-group params: adom: 'ansible' replacemsg-group: 'ansible-test' # name custom-message: ''