forked from CiscoUcs/ucsm-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_playbook.yml
47 lines (46 loc) · 1.56 KB
/
example_playbook.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
---
# Example Playbook: VLAN configuration using the [ucs] hosts group
- hosts: ucs
connection: local
gather_facts: no
tasks:
- name: Configure vMedia
cwilloughby_bw.ucsc.ucs_vmedia:
hostname: "{{ inventory_hostname }}"
username: "{{ username | default(omit) }}"
password: "{{ password }}"
name: "lab1-vm-centos"
description: "test blank vmedia policy"
vmedia_entries:
- mapping_name: kickstart
device_type: hdd
image_name_variable: service-profile-name
image_path: /builds/
mount_protocol: http
remote_host: ucsbuild.lab1.bwnet.us
- mapping_name: centos7
device_type: cdd
image_name_variable: service-profile-name
image_path: /installers/
mount_protocol: http
remote_host: ucsbuild.lab1.bwnet.us
# org_dn: "org-root/org-Bandwidth-Lab"
# - name: Configure VLAN
# cwilloughby_bw.ucsc.ucs_vlans:
# hostname: "{{ inventory_hostname }}"
# username: "{{ username | default(omit) }}"
# password: "{{ password }}"
# state: "{{ state | default(omit) }}"
# name: vlan2
# id: '2'
# native: 'no'
# # domaingroup: 'Lab-RDU'
# - name: Configure VLAN-Group
# cwilloughby_bw.ucsc.ucs_vlan_to_group:
# hostname: "{{ inventory_hostname }}"
# username: "{{ username | default(omit) }}"
# password: "{{ password }}"
# state: "{{ state | default(omit) }}"
# vlangroup: 'RHEV-VLANs'
# vlanname: vlan2
# # domaingroup: 'Lab-RDU'