-
Notifications
You must be signed in to change notification settings - Fork 3
/
zpa_browser_access_info.yml
55 lines (47 loc) · 1.56 KB
/
zpa_browser_access_info.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
# zpa_browser_access_info.yml - Create/Update/Delete an Application Segment.
#
# Description
# ===========
#
# Quick examples of how to use the 'zpa_browser_access_info' module to create an Application Segment in the ZPA Cloud.
#
# This playbook requires proper API credentials to be passed statically or via environment variables connection
# to the ZPA Cloud 'zpa_client_id', 'zpa_client_secret' and zpa_customer_id. These may be defined as host variables
# (see `host_vars/zpa_cloud.yml` for an example) or extra vars.
#
# Modules Used
# ============
#
# zpa_browser_access_info - https://willguibr.github.io/zpacloud-ansible/modules/zpa_browser_access_info.html
#
# Usage
# =====
#
# $ ansible-playbook zpa_browser_access_info.yml
- hosts: localhost
connection: local
tasks:
# Gather All Browser Access Application Segments
- name: Browser Access App Segment
willguibr.zpacloud.zpa_browser_access_info:
register: browser_access
- name: browser_access
debug:
msg: "{{ browser_access }}"
# Gather Specific Browser Access Application Segment By Name
- name: BCRM_Example By Name
willguibr.zpacloud.zpa_browser_access_info:
name: "CRM_Example"
register: app_segment_name
- name: app_segment_name
debug:
msg: "{{ app_segment_name }}"
# Gather Specific Browser Access Application Segment By ID
- name: CRM_Example By ID
willguibr.zpacloud.zpa_browser_access_info:
name: "CRM_Example"
register: app_segment_id
- name: app_segment_id
debug:
msg: "{{ app_segment_id }}"