Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/idrac/idrac_virtual_media.yml

raw symbols SCIP
1 ---
2 - name: Configure the boot order settings
3 hosts: idrac
4 gather_facts: false
5
6 tasks:
7 - name: Insert image file to Remote File Share 1 using CIFS share.
8 dellemc.openmanage.idrac_virtual_media:
9 idrac_ip: "{{ idrac_ip }}"
10 idrac_user: "{{ idrac_user }}"
11 idrac_password: "{{ idrac_password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 virtual_media:
14 - insert: true
15 image: "//192.168.0.2/file_path/file.iso"
16 username: "username"
17 password: "password"
18 tags: insert-media-cifs
19 delegate_to: localhost
20
21 - name: Insert image file to Remote File Share 2 using NFS share.
22 dellemc.openmanage.idrac_virtual_media:
23 idrac_ip: "{{ idrac_ip }}"
24 idrac_user: "{{ idrac_user }}"
25 idrac_password: "{{ idrac_password }}"
26 ca_path: "/path/to/ca_cert.pem"
27 virtual_media:
28 - index: 2
29 insert: true
30 image: "192.168.0.4:/file_path/file.iso"
31 tags: insert-media-nfs
32 delegate_to: localhost
33
34 - name: Insert image file to Remote File Share 1 and 2 using HTTP.
35 dellemc.openmanage.idrac_virtual_media:
36 idrac_ip: "{{ idrac_ip }}"
37 idrac_user: "{{ idrac_user }}"
38 idrac_password: "{{ idrac_password }}"
39 ca_path: "/path/to/ca_cert.pem"
40 force: true
41 virtual_media:
42 - index: 1
43 insert: true
44 image: "http://192.168.0.4/file_path/file.img"
45 - index: 2
46 insert: true
47 image: "http://192.168.0.4/file_path/file.img"
48 tags: insert-media-http
49 delegate_to: localhost
50
51 - name: Insert image file using HTTPS.
52 dellemc.openmanage.idrac_virtual_media:
53 idrac_ip: "{{ idrac_ip }}"
54 idrac_user: "{{ idrac_user }}"
55 idrac_password: "{{ idrac_password }}"
56 ca_path: "/path/to/ca_cert.pem"
57 force: true
58 virtual_media:
59 - index: 1
60 insert: true
61 image: "https://192.168.0.5/file_path/file.img"
62 username: username
63 password: password
64 tags: insert-media-http
65 delegate_to: localhost
66
67 - name: Eject multiple virtual media.
68 dellemc.openmanage.idrac_virtual_media:
69 idrac_ip: "{{ idrac_ip }}"
70 idrac_user: "{{ idrac_user }}"
71 idrac_password: "{{ idrac_password }}"
72 ca_path: "/path/to/ca_cert.pem"
73 virtual_media:
74 - index: 1
75 insert: false
76 - index: 2
77 insert: false
78 tags: eject-media
79 delegate_to: localhost
80
81 - name: Ejection of image file from Remote File Share 1.
82 dellemc.openmanage.idrac_virtual_media:
83 idrac_ip: "{{ idrac_ip }}"
84 idrac_user: "{{ idrac_user }}"
85 idrac_password: "{{ idrac_password }}"
86 ca_path: "/path/to/ca_cert.pem"
87 force: true
88 virtual_media:
89 insert: false
90 tags: eject-media-rfs1
91 delegate_to: localhost
92
93 - name: Insertion and ejection of image file in single task.
94 dellemc.openmanage.idrac_virtual_media:
95 idrac_ip: "{{ idrac_ip }}"
96 idrac_user: "{{ idrac_user }}"
97 idrac_password: "{{ idrac_password }}"
98 ca_path: "/path/to/ca_cert.pem"
99 force: true
100 virtual_media:
101 - index: 1
102 insert: true
103 image: https://192.168.0.5/file/file.iso
104 username: username
105 password: password
106 - index: 2
107 insert: false
108 tags: insert-eject-media
109 delegate_to: localhost