sophos.sophos_firewall.sfos_device_access_profile module – Manage Device Access Profiles (System > Profiles > Device Access)
Note
This module is part of the sophos.sophos_firewall collection (version 2.5.0).
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 sophos.sophos_firewall.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: sophos.sophos_firewall.sfos_device_access_profile.
New in sophos.sophos_firewall 1.0.0
Synopsis
- Manage Device Access Profiles (System > Profiles > Device Access) on Sophos Firewall 
Requirements
The below requirements are needed on the host that executes this module.
- sophosfirewall-python 
- Beginning in version 2.0.0, this module requires use of an httpapi connection plugin. See the HTTPAPI example for details. 
Parameters
| Parameter | Comments | 
|---|---|
| Application Filter permissions. Choices: 
 | |
| Cloud Application Dashboard permissions. Choices: 
 | |
| Dashboard permissions. Choices: 
 | |
| Default permission to use for unspecified arguments when creating profile. Choices: 
 | |
| Email Protection permissions. Choices: 
 | |
| Firewall permissions. Choices: 
 | |
| Identity permissions group. | |
| Authentication permissions. Choices: 
 | |
| Disconnect live user permissions. Choices: 
 | |
| Groups permissions. Choices: 
 | |
| Guest user management permissions. Choices: 
 | |
| Policy permissions. Choices: 
 | |
| Test external server connectivity permissions. Choices: 
 | |
| IPS permissions. Choices: 
 | |
| Logs/Reports permissions group | |
| Configuration permissions. Choices: 
 | |
| De-anonymization permissions. Choices: 
 | |
| Four Eye authentication settings permissions. Choices: 
 | |
| Log viewer permissions. Choices: 
 | |
| Reports access permissions. Choices: 
 | |
| Name of the profile. | |
| Network permissions. Choices: 
 | |
| Objects permissions. Choices: 
 | |
| QoS permissions. Choices: 
 | |
| Use  Choices: 
 | |
| System permissions group. | |
| Backup permissions. Choices: 
 | |
| Central Management permissions. Choices: 
 | |
| Restore permissions. Choices: 
 | |
| Firmware permissions. Choices: 
 | |
| HA permissions. Choices: 
 | |
| Licensing permissions. Choices: 
 | |
| Other certificate configuration permissions. Choices: 
 | |
| Profile permissions. Choices: 
 | |
| Reboot/Shutdown permissions. Choices: 
 | |
| Restore permissions. Choices: 
 | |
| Services permissions. Choices: 
 | |
| Manage system password Choices: 
 | |
| Updates permissions. Choices: 
 | |
| Traffic Discovery permissions. Choices: 
 | |
| VPN permissions group | |
| Connect tunnel permissions. Choices: 
 | |
| Other VPN configurations permissions. Choices: 
 | |
| WAF permissions group | |
| Alerts permissions. Choices: 
 | |
| Other WAF configuration permissions. Choices: 
 | |
| Web Filter permissions. Choices: 
 | |
| Wireless protection permissions group | |
| Wireless protection access point permissions. Choices: 
 | |
| Wireless protection mesh permissions. Choices: 
 | |
| Wireless protection network permissions. Choices: 
 | |
| Wireless protection overview permissions. Choices: 
 | |
| Wireless protection permissions. Choices: 
 | |
| Wizard permissions. Choices: 
 | |
| Zero day protection permissions. Choices: 
 | 
Examples
- name: CREATE A READ-ONLY PROFILE
  sophos.sophos_firewall.sfos_device_access_profile:
    name: ReadOnlyAll
    default_permission: Read-Only
    state: present
- name: CREATE A WIRELESS ADMIN PROFILE
  sophos.sophos_firewall.sfos_device_access_profile:
    name: WirelessAdmin
    default_permission: Read-Only
    wireless_protection:
        wireless_protection_overview: Read-Write
        wireless_protection_settings: Read-Write
        wireless_protection_network: Read-Write
        wireless_protection_access_point: Read-Write
        wireless_protection_mesh: Read-Write
    state: present
- name: UPDATE PROFILE PERMISSIONS
  sophos.sophos_firewall.sfos_device_access_profile:
    name: ExampleProfile
    system:
        central_management: Read-Only
    logs_reports:
        log_viewer: Read-Write
        reports_access: Read-Write
    state: updated
- name: RETRIEVE PROFILE
  sophos.sophos_firewall.sfos_device_access_profile:
    name: ExampleProfile
    state: query
- name: DELETE PROFILE
  sophos.sophos_firewall.sfos_device_access_profile:
    name: ExampleProfile
    state: absent
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| Serialized object containing the API response. Returned: always | 
Collection links
Warning
If the firewall is a member of a group in Central, the changes made by Ansible will override the settings of the group. The actual configuration on the firewall may then differ from what is displayed for the same setting in the Central group.
