-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.yaml
43 lines (29 loc) · 889 Bytes
/
main.yaml
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
---
- name : Address Group Object Modification
hosts: '{{hosts}}'
gather_facts: false
connection: local #httpapi
collections:
- paloaltonetworks.panos
vars:
devices: []
ansible_network_os: paloaltonetworks.panos.panos
ansible_httpapi_use_ssl: yes
ansible_httpapi_validate_certs: no
ansible_httpapi_port: 443
tasks:
- debug:
var: groups.keys()
- name: Create/Update Address Group objects
include_tasks: create_update_AddressGroup.yaml
loop: "{{ groups.keys()| reject('search','all') | reject('search','ungrouped') | list}}"
loop_control:
loop_var: address_group
- name: Commit the Changes
panos_commit:
provider: '{{provider}}'
register: result
- name: Assert Commit was successful
assert:
that:
- result is success