security_antivirus_profile - Antivirus Profile Resource
Added in version 1.0.0.
Synopsis
Antivirus Profile Resource.
Use API “/resource-api/v2/security/antivirus-profile/{direction}/{primaryKey}”.
Requirements
The below requirements are needed on the host that executes this module.
ansible>=2.17.0
Parameters
- state The state of the module. "present" means update the resource. This resource can't be deleted, and does not support "absent" state.type: strchoices: ['present', 'absent']default: present
- force_behavior Specify this option to force the method to use to interact with the resource.type: strchoices: ['none', 'read', 'create', 'update', 'delete']default: none
- bypass_validation Bypass validation of the module.type: booldefault: False
- params The parameters of the module.[Required]type: dict
- direction [Required]type: str
- primary_key [Required]type: str
- http type: strchoices: ['disable', 'enable']
- smtp type: strchoices: ['disable', 'enable']
- pop3 type: strchoices: ['disable', 'enable']
- imap type: strchoices: ['disable', 'enable']
- ftp type: strchoices: ['disable', 'enable']
- cifs type: strchoices: ['disable', 'enable']
Examples
- name: Update security antivirus profile
hosts: fortisase
gather_facts: false
vars:
direction: "outbound-profiles" # outbound-profiles or internal-profiles
profile_group: "profile_ansible"
tasks:
- name: Ensure security group exists, otherwise create it
fortinet.fortisase.security_profile_group:
params:
direction: "{{ direction }}"
primary_key: "{{ profile_group }}"
- name: Update security antivirus profile
fortinet.fortisase.security_antivirus_profile:
params:
direction: "{{ direction }}"
primary_key: "{{ profile_group }}"
cifs: "enable"
ftp: "enable"
http: "enable"
imap: "enable"
pop3: "enable"
Return Values
- http_code type: intreturned: always
- response type: rawreturned: always