-> Disclaimer: Please refer to our General Support Statement before proceeding with the use of this collection. You can also refer to our troubleshooting guide for guidance on typical problems.
This collection contains modules and plugins to assist in automating the configuration and operational tasks on Zscaler Internet Access cloud, and API interactions with Ansible.
- Free software: MIT License
- Documentation
- Repository
- Example Playbooks
This collection is tested with the most current Ansible releases. Ansible versions before 2.15 are not supported.
The minimum python version for this collection is python 3.9
.
The Python module dependencies are not automatically handled by ansible-galaxy
. To manually install these dependencies, you have the following options:
- Utilize the
requirements.txt
file located here to install all required packages:
pip install -r requirements.txt
- Alternatively, install the Zscaler SDK Python package directly:
pip install zscaler-sdk-python
Install this collection using the Ansible Galaxy CLI:
ansible-galaxy collection install zscaler.ziacloud
You can also include it in a requirements.yml
file and install it via ansible-galaxy collection install -r requirements.yml
, using the format:
collections:
- zscaler.ziacloud
It's preferable to use content in this collection using their Fully Qualified Collection Namespace (FQCN), for example zscaler.ziacloud.zia_cloud_firewall_filtering_rule
:
---
- name: ZIA Cloud Firewall Rule
hosts: localhost
vars:
zia_cloud:
username: "{{ lookup('env', 'ZIA_USERNAME') }}"
password: "{{ lookup('env', 'ZIA_PASSWORD') }}"
api_key: "{{ lookup('env', 'ZIA_API_KEY') }}"
cloud: "{{ lookup('env', 'ZIA_CLOUD') | default(omit) }}"
tasks:
- name: Create/update firewall filtering rule
zscaler.ziacloud.zia_cloud_firewall_filtering_rule:
provider: "{{ zia_cloud }}"
name: "Ansible Example"
description: "Ansible Example"
action: "ALLOW"
rule_state: "ENABLED"
order: 1
enable_full_logging: true
nw_services:
- "774003"
- "774013"
register: created_rule
- debug:
msg: "{{ created_rule }}"
(Note that use of the collections
key is now discouraged)
The intended release frequency for major and minor versions are performed whenever there is a need for fixing issues or to address security concerns.
Changelog details are created automatically and more recently can be found here, but also the full history is here.
Semantic versioning is adhered to for this project.
Deprecations are done by version number, not by date or by age of release. Breaking change deprecations will only be made with major versions.
The Zscaler Internet Access (ZIA) Collection of Ansible Modules is certified on Ansible Automation Hub and officially supported for Ansible subscribers. Ansible subscribers can engage for support through their usual route towards Red Hat.
For those who are not Ansible subscribers, this Collection of Ansible Modules is also published on Ansible Galaxy and also supported via the formal Zscaler suppport process. Please refer to our General Support Statement
Copyright (c) 2023 Zscaler
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.