- 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 anomaly names of IPv4 DoS policy fmgr_fact: facts: selector: 'pkg_firewall_dospolicy_anomaly' params: adom: 'ansible' pkg: 'ansible' # package name DoS-policy: '1' # policyid anomaly: ''