forked from dell/dellemc-openmanage-ansible-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dellemc_ome_device_facts.yml
69 lines (61 loc) · 1.83 KB
/
dellemc_ome_device_facts.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
---
- hosts: myhosts
connection: local
name: Dell OpenManage Ansible device inventory details.
gather_facts: False
tasks:
- name: Get all devices details.
dellemc_ome_device_facts:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
tags:
- get_device_list
- name: Get devices details by filtering.
dellemc_ome_device_facts:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
fact_subset: "basic_inventory"
system_query_options:
filter: "Id eq 31474 or Id eq 25010"
tags:
- get_device_list_with_filtering
- name: Get Inventory details of specified devices.
dellemc_ome_device_facts:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
fact_subset: "detailed_inventory"
system_query_options:
device_id:
- 25010
- 31474
tags:
- get_detailed_inventory
- name: Get Health Status of specified devices.
dellemc_ome_device_facts:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
fact_subset: "subsystem_health"
system_query_options:
device_service_tag:
- KLBR840
- ST0004B
tags:
- get_health_status
- name: Get details of specified inventory type of specified devices.
dellemc_ome_device_facts:
hostname: "{{ hostname }}"
username: "{{ username }}"
password: "{{ password }}"
fact_subset: "detailed_inventory"
system_query_options:
device_id:
- 25010
device_service_tag:
- KLBR840
inventory_type: "serverDeviceCards"
tags:
- get_inventory_type