- 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 policies in the GTP fmgr_fact: facts: selector: 'firewall_gtp_policy' params: adom: 'FortiCarrier' # This is FOC-only object, need a FortiCarrier adom gtp: 'ansible-test' # name policy: ''