blob: 7ed4d9ba404ef6af24e2d26e83dc3243c96f4839 (
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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
---
- name: Configure the boot order settings
hosts: idrac
gather_facts: false
tasks:
- name: Insert image file to Remote File Share 1 using CIFS share.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
virtual_media:
- insert: true
image: "//192.168.0.2/file_path/file.iso"
username: "username"
password: "password"
tags: insert-media-cifs
delegate_to: localhost
- name: Insert image file to Remote File Share 2 using NFS share.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
virtual_media:
- index: 2
insert: true
image: "192.168.0.4:/file_path/file.iso"
tags: insert-media-nfs
delegate_to: localhost
- name: Insert image file to Remote File Share 1 and 2 using HTTP.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: true
image: "http://192.168.0.4/file_path/file.img"
- index: 2
insert: true
image: "http://192.168.0.4/file_path/file.img"
tags: insert-media-http
delegate_to: localhost
- name: Insert image file using HTTPS.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: true
image: "https://192.168.0.5/file_path/file.img"
username: username
password: password
tags: insert-media-http
delegate_to: localhost
- name: Eject multiple virtual media.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
virtual_media:
- index: 1
insert: false
- index: 2
insert: false
tags: eject-media
delegate_to: localhost
- name: Ejection of image file from Remote File Share 1.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
insert: false
tags: eject-media-rfs1
delegate_to: localhost
- name: Insertion and ejection of image file in single task.
dellemc.openmanage.idrac_virtual_media:
idrac_ip: "{{ idrac_ip }}"
idrac_user: "{{ idrac_user }}"
idrac_password: "{{ idrac_password }}"
ca_path: "/path/to/ca_cert.pem"
force: true
virtual_media:
- index: 1
insert: true
image: https://192.168.0.5/file/file.iso
username: username
password: password
- index: 2
insert: false
tags: insert-eject-media
delegate_to: localhost
|