1
0
Fork 0
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:
panticz 2019-03-21 16:22:52 +01:00 committed by John R Barker
parent 530771e6f8
commit c80baf7c58

View file

@ -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: