-
Notifications
You must be signed in to change notification settings - Fork 1
/
cleanup.yml
37 lines (36 loc) · 1.14 KB
/
cleanup.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
---
- hosts: aci
gather_facts: False
tasks:
- name: Delete Policy Group for VPC List
cisco.aci.aci_interface_policy_leaf_policy_group:
host: '{{ apic }}'
username: '{{ apic_user }}'
# password: '{{ apic_password }}'
certificate_name: admin
private_key: "{{ lookup('file', 'certs/admin.key') }}"
validate_certs: no
lag_type: node
policy_group: '{{ item }}'
link_level_policy: 10G_Auto
cdp_policy: CDP_Enabled
lldp_policy: LLDP_Enabled
port_channel_policy: LACP_Enabled
state: absent
with_sequence: start=1 end=10 format=Server%02d
- name: Delete Policy Group for Single VPC
cisco.aci.aci_interface_policy_leaf_policy_group:
host: '{{ apic }}'
username: '{{ apic_user }}'
# password: '{{ apic_password }}'
certificate_name: admin
private_key: "{{ lookup('file', 'certs/admin.key') }}"
validate_certs: no
lag_type: node
policy_group: 'Server01'
link_level_policy: 10G_Auto
cdp_policy: CDP_Enabled
lldp_policy: LLDP_Enabled
port_channel_policy: LACP_Enabled
state: absent
# delegate_to: localhost