forked from soumukhe/MSO-Ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1e.AddEPG.yaml
49 lines (39 loc) · 1.51 KB
/
1e.AddEPG.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
44
45
46
47
48
49
---
- name: add ANP & EPG
hosts: mso
connection: local
gather_facts: false
vars_files:
- external_vars.yml
tasks:
- name: Add a new ANP
cisco.mso.mso_schema_template_anp:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "no"
use_proxy: false
schema: "{{ schema }}"
template: "{{ template }}"
anp: "{{ anp }}"
state: present
delegate_to: localhost
- name: Add a new EPG WEB
cisco.mso.mso_schema_template_anp_epg:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
validate_certs: "no"
use_proxy: false
schema: "{{ schema }}"
template: "{{ template }}"
anp: "{{ anp }}"
epg: "{{ epg1 }}"
bd:
name: "{{ bd }}"
state: present
delegate_to: localhost
# usage: ansible-playbook --ask-vault-pass 1e.AddEPG.yaml -i hosts -vvv
# usage: ansible-playbook --vault-id vaultPass 1e.AddEPG.yaml -i hosts -vvv
# mso_schema_template_anp – Manage Application Network Profiles (ANPs) in schema templates: https://docs.ansible.com/ansible/latest/modules/mso_schema_template_anp_module.html#mso-schema-template-anp-module
# mso_schema_template_anp_epg – Manage Endpoint Groups (EPGs) in schema templates: https://docs.ansible.com/ansible/latest/modules/mso_schema_template_anp_epg_module.html#mso-schema-template-anp-epg-module