fortinet.fortios.fortios_endpoint_control_profile module – Configure FortiClient endpoint control profiles in Fortinet’s FortiOS and FortiGate.
Note
This module is part of the fortinet.fortios collection (version 2.3.8).
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
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: fortinet.fortios.fortios_endpoint_control_profile
.
New in fortinet.fortios 2.0.0
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.15
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. see <a href=’#notes’>Notes</a>. |
|
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. see <a href=’#notes’>Notes</a>. |
|
FortiClient registration compliance action. Choices:
|
|
FortiClient registry entry. |
|
Registry entry ID. see <a href=’#notes’>Notes</a>. |
|
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. see <a href=’#notes’>Notes</a>. |
|
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: |
Notes
Note
Legacy fortiosapi has been deprecated, httpapi is the preferred way to run playbooks
The module supports check_mode.
Examples
- name: Configure FortiClient endpoint control profiles.
fortinet.fortios.fortios_endpoint_control_profile:
vdom: "{{ vdom }}"
state: "present"
access_token: "<your_own_value>"
endpoint_control_profile:
description: "<your_own_value>"
device_groups:
-
name: "default_name_5 (source user.device-group.name user.device-category.name)"
forticlient_android_settings:
disable_wf_when_protected: "enable"
forticlient_advanced_vpn: "enable"
forticlient_advanced_vpn_buffer: "<your_own_value>"
forticlient_vpn_provisioning: "enable"
forticlient_vpn_settings:
-
auth_method: "psk"
name: "default_name_13"
preshared_key: "<your_own_value>"
remote_gw: "<your_own_value>"
sslvpn_access_port: "32767"
sslvpn_require_certificate: "enable"
type: "ipsec"
forticlient_wf: "enable"
forticlient_wf_profile: "<your_own_value> (source webfilter.profile.name)"
forticlient_ios_settings:
client_vpn_provisioning: "enable"
client_vpn_settings:
-
auth_method: "psk"
name: "default_name_25"
preshared_key: "<your_own_value>"
remote_gw: "<your_own_value>"
sslvpn_access_port: "32767"
sslvpn_require_certificate: "enable"
type: "ipsec"
vpn_configuration_content: "<your_own_value>"
vpn_configuration_name: "<your_own_value>"
configuration_content: "<your_own_value>"
configuration_name: "<your_own_value>"
disable_wf_when_protected: "enable"
distribute_configuration_profile: "enable"
forticlient_wf: "enable"
forticlient_wf_profile: "<your_own_value> (source webfilter.profile.name)"
forticlient_winmac_settings:
av_realtime_protection: "enable"
av_signature_up_to_date: "enable"
forticlient_application_firewall: "enable"
forticlient_application_firewall_list: "<your_own_value> (source application.list.name)"
forticlient_av: "enable"
forticlient_ems_compliance: "enable"
forticlient_ems_compliance_action: "block"
forticlient_ems_entries:
-
name: "default_name_48 (source endpoint-control.forticlient-ems.name)"
forticlient_linux_ver: "<your_own_value>"
forticlient_log_upload: "enable"
forticlient_log_upload_level: "traffic"
forticlient_log_upload_server: "<your_own_value>"
forticlient_mac_ver: "<your_own_value>"
forticlient_minimum_software_version: "enable"
forticlient_operating_system:
-
id: "56"
os_name: "<your_own_value>"
os_type: "custom"
forticlient_own_file:
-
file: "<your_own_value>"
id: "61"
forticlient_registration_compliance_action: "block"
forticlient_registry_entry:
-
id: "64"
registry_entry: "<your_own_value>"
forticlient_running_app:
-
app_name: "<your_own_value>"
app_sha256_signature: "<your_own_value>"
app_sha256_signature2: "<your_own_value>"
app_sha256_signature3: "<your_own_value>"
app_sha256_signature4: "<your_own_value>"
application_check_rule: "present"
id: "73"
process_name: "<your_own_value>"
process_name2: "<your_own_value>"
process_name3: "<your_own_value>"
process_name4: "<your_own_value>"
forticlient_security_posture: "enable"
forticlient_security_posture_compliance_action: "block"
forticlient_system_compliance: "enable"
forticlient_system_compliance_action: "block"
forticlient_vuln_scan: "enable"
forticlient_vuln_scan_compliance_action: "block"
forticlient_vuln_scan_enforce: "critical"
forticlient_vuln_scan_enforce_grace: "15"
forticlient_vuln_scan_exempt: "enable"
forticlient_wf: "enable"
forticlient_wf_profile: "<your_own_value> (source webfilter.profile.name)"
forticlient_win_ver: "<your_own_value>"
os_av_software_installed: "enable"
sandbox_address: "<your_own_value>"
sandbox_analysis: "enable"
on_net_addr:
-
name: "default_name_94 (source firewall.address.name firewall.addrgrp.name)"
profile_name: "<your_own_value>"
replacemsg_override_group: "<your_own_value> (source system.replacemsg-group.name)"
src_addr:
-
name: "default_name_98 (source firewall.address.name firewall.addrgrp.name)"
user_groups:
-
name: "default_name_100 (source user.group.name)"
users:
-
name: "default_name_102 (source user.local.name)"
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: |
|
Last method used to provision the content into FortiGate Returned: always Sample: |
|
Last result given by FortiGate on last operation applied Returned: always Sample: |
|
Master key (id) used in the last call to FortiGate Returned: success Sample: |
|
Name of the table used to fulfill the request Returned: always Sample: |
|
Path of the table used to fulfill the request Returned: always Sample: |
|
Internal revision number Returned: always Sample: |
|
Serial number of the unit Returned: always Sample: |
|
Indication of the operation’s result Returned: always Sample: |
|
Virtual domain used Returned: always Sample: |
|
Version of the FortiGate Returned: always Sample: |