fortinet.fortios.fortios_endpoint_control_profile – Configure FortiClient endpoint control profiles in Fortinet’s FortiOS and FortiGate.
Note
This plugin is part of the fortinet.fortios collection (version 2.1.3).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install fortinet.fortios
.
To use it in a playbook, specify: fortinet.fortios.fortios_endpoint_control_profile
.
New in version 2.10: of fortinet.fortios
Synopsis
This module is able to configure a FortiGate or FortiOS (FOS) device by allowing the user to set and modify endpoint_control feature and profile category. Examples include all parameters and values need to be adjusted to datasources before usage. Tested with FOS v6.0.0
Requirements
The below requirements are needed on the host that executes this module.
ansible>=2.9.0
Parameters
Parameter |
Comments |
---|---|
Token-based authentication. Generated from GUI of Fortigate. |
|
Enable/Disable logging for task. Choices:
|
|
Configure FortiClient endpoint control profiles. |
|
Description. |
|
Device groups. |
|
Device group object from available options. Source user.device-group.name user.device-category.name. |
|
FortiClient settings for Android platform. |
|
Enable/disable FortiClient web category filtering when protected by FortiGate. Choices:
|
|
Enable/disable advanced FortiClient VPN configuration. Choices:
|
|
Advanced FortiClient VPN configuration. |
|
Enable/disable FortiClient VPN provisioning. Choices:
|
|
FortiClient VPN settings. |
|
Authentication method. Choices:
|
|
VPN name. |
|
Pre-shared secret for PSK authentication. |
|
IP address or FQDN of the remote VPN gateway. |
|
SSL VPN access port (1 - 65535). |
|
Enable/disable requiring SSL VPN client certificate. Choices:
|
|
VPN type (IPsec or SSL VPN). Choices:
|
|
Enable/disable FortiClient web filtering. Choices:
|
|
The FortiClient web filter profile to apply. Source webfilter.profile.name. |
|
FortiClient settings for iOS platform. |
|
FortiClient VPN provisioning. Choices:
|
|
FortiClient VPN settings. |
|
Authentication method. Choices:
|
|
VPN name. |
|
Pre-shared secret for PSK authentication. |
|
IP address or FQDN of the remote VPN gateway. |
|
SSL VPN access port (1 - 65535). |
|
Enable/disable requiring SSL VPN client certificate. Choices:
|
|
VPN type (IPsec or SSL VPN). Choices:
|
|
Content of VPN configuration. |
|
Name of VPN configuration. |
|
Content of configuration profile. |
|
Name of configuration profile. |
|
Enable/disable FortiClient web category filtering when protected by FortiGate. Choices:
|
|
Enable/disable configuration profile (.mobileconfig file) distribution. Choices:
|
|
Enable/disable FortiClient web filtering. Choices:
|
|
The FortiClient web filter profile to apply. Source webfilter.profile.name. |
|
FortiClient settings for Windows/Mac platform. |
|
Enable/disable FortiClient AntiVirus real-time protection. Choices:
|
|
Enable/disable FortiClient AV signature updates. Choices:
|
|
Enable/disable the FortiClient application firewall. Choices:
|
|
FortiClient application firewall rule list. Source application.list.name. |
|
Enable/disable FortiClient AntiVirus scanning. Choices:
|
|
Enable/disable FortiClient Enterprise Management Server (EMS) compliance. Choices:
|
|
FortiClient EMS compliance action. Choices:
|
|
FortiClient EMS entries. |
|
FortiClient EMS name. Source endpoint-control.forticlient-ems.name. |
|
Minimum FortiClient Linux version. |
|
Enable/disable uploading FortiClient logs. Choices:
|
|
Select the FortiClient logs to upload. Choices:
|
|
IP address or FQDN of the server to which to upload FortiClient logs. |
|
Minimum FortiClient Mac OS version. |
|
Enable/disable requiring clients to run FortiClient with a minimum software version number. Choices:
|
|
FortiClient operating system. |
|
Operating system entry ID. |
|
Customize operating system name or Mac OS format:x.x.x |
|
Operating system type. Choices:
|
|
Checking the path and filename of the FortiClient application. |
|
File path and name. |
|
File ID. |
|
FortiClient registration compliance action. Choices:
|
|
FortiClient registry entry. |
|
Registry entry ID. |
|
Registry entry. |
|
Use FortiClient to verify if the listed applications are running on the client. |
|
Application name. |
|
App”s SHA256 signature. |
|
App”s SHA256 Signature. |
|
App”s SHA256 Signature. |
|
App”s SHA256 Signature. |
|
Application check rule. Choices:
|
|
Application ID. |
|
Process name. |
|
Process name. |
|
Process name. |
|
Process name. |
|
Enable/disable FortiClient security posture check options. Choices:
|
|
FortiClient security posture compliance action. Choices:
|
|
Enable/disable enforcement of FortiClient system compliance. Choices:
|
|
Block or warn clients not compliant with FortiClient requirements. Choices:
|
|
Enable/disable FortiClient vulnerability scanning. Choices:
|
|
FortiClient vulnerability compliance action. Choices:
|
|
Configure the level of the vulnerability found that causes a FortiClient vulnerability compliance action. Choices:
|
|
FortiClient vulnerability scan enforcement grace period (0 - 30 days). |
|
Enable/disable compliance exemption for vulnerabilities that cannot be patched automatically. Choices:
|
|
Enable/disable FortiClient web filtering. Choices:
|
|
The FortiClient web filter profile to apply. Source webfilter.profile.name. |
|
Minimum FortiClient Windows version. |
|
Enable/disable checking for OS recognized AntiVirus software. Choices:
|
|
FortiSandbox address. |
|
Enable/disable sending files to FortiSandbox for analysis. Choices:
|
|
Addresses for on-net detection. |
|
Address object from available options. Source firewall.address.name firewall.addrgrp.name. |
|
Profile name. |
|
Select an endpoint control replacement message override group from available options. Source system.replacemsg-group.name. |
|
Source addresses. |
|
Address object from available options. Source firewall.address.name firewall.addrgrp.name. |
|
User groups. |
|
User group name. Source user.group.name. |
|
Users. |
|
User name. Source user.local.name. |
|
Member attribute path to operate on. Delimited by a slash character if there are more than one attribute. Parameter marked with member_path is legitimate for doing member operation. |
|
Add or delete a member under specified attribute path. When member_state is specified, the state option is ignored. Choices:
|
|
Indicates whether to create or remove the object. Choices:
|
|
Virtual domain, among those defined previously. A vdom is a virtual instance of the FortiGate that can be configured and used as a different unit. Default: “root” |
Examples
- collections:
- fortinet.fortios
connection: httpapi
hosts: fortigate01
vars:
ansible_httpapi_port: 443
ansible_httpapi_use_ssl: true
ansible_httpapi_validate_certs: false
vdom: root
tasks:
- name: fortios_endpoint_control_profile
fortios_endpoint_control_profile:
vdom: root
state: present
endpoint_control_profile:
device_groups:
- name: all
forticlient_android_settings:
- disable_wf_when_protected: enable
forticlient_advanced_vpn: disable
forticlient_vpn_provisioning: disable
forticlient_wf: disable
forticlient_ios_settings:
- client_vpn_provisioning: disable
disable_wf_when_protected: enable
distribute_configuration_profile: disable
forticlient_wf: disable
forticlient_winmac_settings:
- av_realtime_protection: disable
av_signature_up_to_date: disable
forticlient_application_firewall: disable
forticlient_av: disable
forticlient_ems_compliance: disable
forticlient_ems_compliance_action: warning
forticlient_linux_ver: 5.4.1
forticlient_log_upload: enable
forticlient_log_upload_level: event
forticlient_mac_ver: 5.4.1
forticlient_minimum_software_version: disable
forticlient_registration_compliance_action: warning
forticlient_security_posture: disable
forticlient_security_posture_compliance_action: warning
forticlient_system_compliance: enable
forticlient_system_compliance_action: warning
forticlient_vuln_scan: enable
forticlient_vuln_scan_compliance_action: warning
forticlient_vuln_scan_enforce: high
forticlient_vuln_scan_enforce_grace: 1
forticlient_vuln_scan_exempt: disable
forticlient_wf: disable
forticlient_win_ver: 5.4.1
os_av_software_installed: disable
sandbox_analysis: disable
on_net_addr:
- name: all
profile_name: '1'
users:
- name: guest
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Build number of the fortigate image Returned: always Sample: “1547” |
|
Last method used to provision the content into FortiGate Returned: always Sample: “PUT” |
|
Last result given by FortiGate on last operation applied Returned: always Sample: “200” |
|
Master key (id) used in the last call to FortiGate Returned: success Sample: “id” |
|
Name of the table used to fulfill the request Returned: always Sample: “urlfilter” |
|
Path of the table used to fulfill the request Returned: always Sample: “webfilter” |
|
Internal revision number Returned: always Sample: “17.0.2.10658” |
|
Serial number of the unit Returned: always Sample: “FGVMEVYYQT3AB5352” |
|
Indication of the operation’s result Returned: always Sample: “success” |
|
Virtual domain used Returned: always Sample: “root” |
|
Version of the FortiGate Returned: always Sample: “v5.6.3” |
Authors
Link Zheng (@chillancezen)
Jie Xue (@JieX19)
Hongbin Lu (@fgtdev-hblu)
Frank Shen (@frankshen01)
Miguel Angel Munoz (@mamunozgonzalez)
Nicolas Thomas (@thomnico)