forked from dsoper2/ucsm-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsite.yml
85 lines (82 loc) · 2.44 KB
/
site.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
- hosts: localhost
connection: local
gather_facts: no
roles:
- common
- hosts: ucs
connection: local
gather_facts: no
roles:
- boot_order
tasks:
- name: enable ntp
cisco_ucs_ntp:
name: "{{ntp_server}}"
descr: Ansible managed NTP
state: present
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure dns
cisco_ucs_dns:
name: "{{dns_server}}"
descr: Ansible managed DNS
state: present
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure port channels
cisco_ucs_port_channel:
pc_list: "{{pc_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure WWN pools
cisco_ucs_wwn:
wwn_list: "{{wwn_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure vHBA templates
cisco_ucs_vhba_template:
vhba_list: "{{vhba_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure SAN connectivity policies
cisco_ucs_san_connectivity:
san_conn_list: "{{san_conn_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure UUID pool
cisco_ucs_uuid:
uuid_pool: "{{uuid_pool}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure disk group policy
cisco_ucs_disk_group_policy:
disk_group_policy_list: "{{disk_group_policy_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure storage profile
cisco_ucs_storage_profile:
storage_profile: "{{storage_profile}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure Service Profile Templates
cisco_ucs_spt:
spt_list: "{{service_profile_template_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"
- name: configure Service Profiles
cisco_ucs_sp:
sp_list: "{{service_profile_list}}"
ucs_ip: "{{ucs_ip}}"
ucs_username: "{{ucs_username}}"
ucs_password: "{{ucs_password}}"