Debian Codegraph @

ansible_collections/dellemc/openmanage/playbooks/ome/ome_devices.yml

raw symbols SCIP
1 ---
2 - name: Dell OpenManage Ansible device operations.
3 hosts: ome
4 gather_facts: false
5
6 tasks:
7 - name: Refresh Inventory
8 dellemc.openmanage.ome_devices:
9 hostname: "{{ hostname }}"
10 username: "{{ username }}"
11 password: "{{ password }}"
12 ca_path: "/path/to/ca_cert.pem"
13 device_action: refresh_inventory
14 device_service_tags:
15 - 2HB7NX2
16 delegate_to: localhost
17
18 - name: Clear iDRAC job queue
19 dellemc.openmanage.ome_devices:
20 hostname: "{{ hostname }}"
21 username: "{{ username }}"
22 password: "{{ password }}"
23 ca_path: "/path/to/ca_cert.pem"
24 device_action: clear_idrac_job_queue
25 device_service_tags:
26 - 2HB7NX2
27 delegate_to: localhost
28
29 - name: Reset iDRAC using the service tag
30 dellemc.openmanage.ome_devices:
31 hostname: "{{ hostname }}"
32 username: "{{ username }}"
33 password: "{{ password }}"
34 ca_path: "/path/to/ca_cert.pem"
35 device_action: reset_idrac
36 device_service_tags:
37 - 2H7HNX2
38 delegate_to: localhost
39
40 - name: Remove devices using servicetags
41 dellemc.openmanage.ome_devices:
42 hostname: "{{ hostname }}"
43 username: "{{ username }}"
44 password: "{{ password }}"
45 ca_path: "/path/to/ca_cert.pem"
46 state: absent
47 device_service_tags:
48 - SVCTAG1
49 - SVCTAF2
50 delegate_to: localhost
51
52 - name: Remove devices using IDs
53 dellemc.openmanage.ome_devices:
54 hostname: "{{ hostname }}"
55 username: "{{ username }}"
56 password: "{{ password }}"
57 ca_path: "/path/to/ca_cert.pem"
58 state: absent
59 device_ids:
60 - 10235
61 delegate_to: localhost