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
pull/54182/head
panticz 6 years ago committed by John R Barker
parent 530771e6f8
commit c80baf7c58

@ -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…
Cancel
Save