blob: 1d7ac6be578b1939eccf6f2388df677563e7db28 (
plain)
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
|
---
- hosts: ise_servers
gather_facts: false
tasks:
- name: Get ANC policies
cisco.ise.anc_policy_info:
ise_hostname: "{{ ise_hostname }}"
ise_username: "{{ ise_username }}"
ise_password: "{{ ise_password }}"
ise_verify: "{{ ise_verify }}"
register: result
- name: Print ANC policy
ansible.builtin.debug:
var: result
- name: Create or update ANC policy
cisco.ise.anc_policy:
ise_hostname: "{{ ise_hostname }}"
ise_username: "{{ ise_username }}"
ise_password: "{{ ise_password }}"
ise_verify: "{{ ise_verify }}"
state: present
name: policy1
actions: [SHUTDOWN]
register: result
- name: Print ANC policy
ansible.builtin.debug:
var: result
|