This collection contains modules and plugins to assist in automating the configuration and operational tasks on Zscaler Private Access cloud, and API interactions with Ansible.
- Free software: MIT License
- Documentation: https://zscaler.github.io/zpacloud-ansible/
- Repo: https://github.com/zscaler/zpacloud-ansible
- Example Playbooks: https://github.com/willguibr/zpacloud-playbooks
This collection is tested with the most current Ansible 2.9 and 2.10 releases. Ansible versions before 2.9.10 are not supported.
- zpa_app_connector_groups - Create/Update/Delete an app connector group.
- zpa_app_connector_groups_info - Gather information details (ID and/or Name) of a app connector group.
- zpa_application_segment - Create/Update/Delete an application segment.
- zpa_application_segment_info - Gather information details (ID and/or Name) of a application segment.
- zpa_application_server - Create/Update/Delete an Application Server.
- zpa_application_server_info - Gather information details (ID and/or Name) of an application server.
- zpa_ba_certificate_info - Gather information details (ID and/or Name) of an browser access certificate.
- zpa_cloud_connector_group_info - Gather information details (ID and/or Name) of an cloud connector group.
- zpa_customer_version_profile_info - Gather information details (ID and/or Name) of an customer version profile for use in app connector group resource in the
version_profile_id
parameter. - zpa_enrollment_cert_info - Gather information details (ID and/or Name) of an enrollment certificate for use when creating provisioning keys for connector groups or service edge groups.
- zpa_idp_controller_info - Gather information details (ID and/or Name) of an identity provider (IdP) created in the ZPA tenant.
- zpa_machine_group_info - Gather information details (ID and/or Name) of an machine group for use in a policy access and/or forwarding rules.
- zpa_policy_access_rule - Create/Update/Delete a policy access rule.
- zpa_policy_access_rule_info - Gather information details (ID and/or Name) of a policy access rule.
- zpa_policy_timeout_rule - Create/Update/Delete a policy access timeout rule.
- zpa_policy_timeout_rule_info - Gather information details (ID and/or Name) of a policy access timeout rule.
- zpa_policy_forwarding_rule - Create/Update/Delete a policy access forwarding rule.
- zpa_policy_forwarding_rule_info - Gather information details (ID and/or Name) of a policy access forwarding rule.
- zpa_posture_profile_info - Gather information details (ID and/or Name) of a posture profile to use in a policy access, timeout or forwarding rules.
- zpa_provisioning_key - Create/Update/Delete a provisioning key.
- zpa_provisioning_key_info - Gather information details (ID and/or Name) of a provisioning key.
- zpa_saml_attribute_info - Gather information details (ID and/or Name) of a saml attribute.
- zpa_scim_attribute_header_info - Gather information details (ID and/or Name) of a scim attribute header.
- zpa_scim_group_info - Gather information details (ID and/or Name) of a scim group.
- zpa_segment_group - Create/Update/Delete a segment group.
- zpa_segment_group_info - Gather information details (ID and/or Name) of a segment group.
- zpa_server_group - Create/Update/Delete a segment group.
- zpa_server_group_info - Gather information details (ID and/or Name) of a server group.
- zpa_service_edge_group_info - Gather information details (ID and/or Name) of a service edge group.
- zpa_service_edge_group - Create/Update/Delete an service edge group.
- zpa_trusted_network_info - Gather information details (ID and/or Name) of a trusted network for use in a policy access and/or forwarding rules.
Before using the ZPACloud collection, you need to install it with the Ansible Galaxy CLI:
ansible-galaxy collection install willguibr.zpacloud
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:
- willguibr.zpacloud
It's preferable to use content in this collection using their Fully Qualified Collection Namespace (FQCN), for example willguibr.zpacloud.zpa_app_connector_groups
:
---
- hosts: localhost
gather_facts: false
connection: local
tasks:
- name: Get Information Details of All Customer Version Profiles
willguibr.zpacloud.zpa_customer_version_profile_info:
register: version_profile_id
- name: Create App Connector Group Example
willguibr.zpacloud.zpa_app_connector_groups:
name: "Example"
description: "Example"
enabled: true
city_country: "California, US"
country_code: "US"
latitude: "37.3382082"
longitude: "-121.8863286"
location: "San Jose, CA, USA"
upgrade_day: "SUNDAY"
upgrade_time_in_secs: "66600"
override_version_profile: true
version_profile_id: "{{ version_profile_id.data[0].id }}"
dns_query_type: "IPV4"
If you are using versions prior to Ansible 2.10 and this collection's existence, you can also define collections
in your play and refer to this collection's modules as you did in Ansible 2.9 and below, as in this example:
---
- hosts: localhost
gather_facts: false
connection: local
collections:
- zscaler.zpacloud
tasks:
- name: Get Information Details of All Customer Version Profiles
zpa_customer_version_profile_info:
register: version_profile_id
- name: Create App Connector Group Example
zpa_app_connector_groups:
name: "Example"
description: "Example"
enabled: true
city_country: "California, US"
country_code: "US"
latitude: "37.3382082"
longitude: "-121.8863286"
location: "San Jose, CA, USA"
upgrade_day: "SUNDAY"
upgrade_time_in_secs: "66600"
override_version_profile: true
version_profile_id: "{{ version_profile_id.data[0].id }}"
dns_query_type: "IPV4"
...
MIT License
=======
Copyright (c) 2022 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.