- hosts: fortimanager00 collections: - fortinet.fortimanager connection: httpapi vars: ansible_httpapi_use_ssl: True ansible_httpapi_validate_certs: False ansible_httpapi_port: 443 tasks: - name: Alert emails. fmgr_system_mail: bypass_validation: False state: present system_mail: auth: enable id: 1 passwd: fortinet port: 1 secure-option: none # server: ALL user: ansible