sophos.sophos_firewall.sfos_zone module – Manage Zones (Configure > Network > Zones)
Note
This module is part of the sophos.sophos_firewall collection (version 2.0.1).
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_zone
.
New in sophos.sophos_firewall 1.0.0
Synopsis
Creates, updates or removes firewall zones 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 |
---|---|
Enable/Disable SSO with Active Directory Choices:
|
|
Enable/Disable captive portal Choices:
|
|
Enable/Disable Chromebook SSO Choices:
|
|
Enable/Disable client authentication service Choices:
|
|
Description for the zone |
|
Enable/Disable DNS network service Choices:
|
|
Enable/Disable Dynamic Routing Choices:
|
|
Enable/Disable HTTPS administrative service Choices:
|
|
Enable/Disable IPSec VPN service Choices:
|
|
Name of the zone to create, update, or delete |
|
Enable/Disable Ping network service Choices:
|
|
Enable/Disable SSO with Radius Choices:
|
|
Enable/Disable RED service Choices:
|
|
Enable/Disable SMTP Relay Choices:
|
|
Enable/Disable SNMP Choices:
|
|
Enable/Disable SSH administrative service Choices:
|
|
Enable/Disable SSLVPN service Choices:
|
|
Use Choices:
|
|
Enable/Disable user portal Choices:
|
|
Enable/Disable VPN Portal Choices:
|
|
Enable/Disable Web Proxy Choices:
|
|
Enable/Disable Wireless Protection Choices:
|
|
Type of zone to create (LAN/DMZ) Choices:
|
Examples
- name: Create Zone
sophos.sophos_firewall.sfos_zone:
name: TESTZONE
description: Zone created by Ansible
zone_type: LAN
state: present
- name: Display Existing Zone
sophos.sophos_firewall.sfos_zone:
name: TESTZONE
state: query
- name: Update Zone Admin Services
sophos.sophos_firewall.sfos_zone:
name: TESTZONE
https: Enable
ssh: Enable
state: updated
- name: Remove Zone
sophos.sophos_firewall.sfos_zone:
name: TESTZONE
state: absent
delegate_to: localhost
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.