mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
redfish_facts: Extend CPU data example and output results (#54168)
* Extend CPU data example and output results Add "Get CPU Model example" and output result from "Get CPU inventory". Also add example for output of the "Inventory information" to make it easier to use the examples for Ansible beginners. +label: docsite_pr * Remove white space from blank line
This commit is contained in:
parent
530771e6f8
commit
c80baf7c58
1 changed files with 14 additions and 0 deletions
|
@ -55,6 +55,18 @@ EXAMPLES = '''
|
|||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
- debug:
|
||||
msg: "{{ redfish_facts.cpu.entries | to_nice_json }}"
|
||||
|
||||
- name: Get CPU model
|
||||
redfish_facts:
|
||||
category: Systems
|
||||
command: GetCpuInventory
|
||||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
- debug:
|
||||
msg: "{{ redfish_facts.cpu.entries.0.Model }}"
|
||||
|
||||
- name: Get fan inventory
|
||||
redfish_facts:
|
||||
|
@ -69,6 +81,8 @@ EXAMPLES = '''
|
|||
baseuri: "{{ baseuri }}"
|
||||
username: "{{ username }}"
|
||||
password: "{{ password }}"
|
||||
- debug:
|
||||
msg: "{{ redfish_facts | to_nice_json }}"
|
||||
|
||||
- name: Get several inventories
|
||||
redfish_facts:
|
||||
|
|
Loading…
Reference in a new issue