modules: fix examples to use FQCN for builtin modules (#648)

* modules: fix examples to use FQCN for builtin modules

* fix

* fix

* fix

* fix

* fix

* fix

* fix
This commit is contained in:
Andrew Klychkov 2020-07-14 18:28:08 +03:00 committed by GitHub
commit c055340ecb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
126 changed files with 290 additions and 286 deletions

View file

@ -71,11 +71,11 @@ EXAMPLES = '''
idrac_attributes: "{{ result.redfish_facts.entries | selectattr('Id', 'defined') | selectattr('Id', 'equalto', 'iDRACAttributes') | list | first }}"
- name: Display all iDRAC attributes
debug:
ansible.builtin.debug:
var: idrac_attributes
- name: Display the value of 'Syslog.1.SysLogEnable' iDRAC attribute
debug:
ansible.builtin.debug:
var: idrac_attributes['Syslog.1.SysLogEnable']
# Examples to display the value of all or a single LifecycleController attribute
@ -84,11 +84,11 @@ EXAMPLES = '''
lc_attributes: "{{ result.redfish_facts.entries | selectattr('Id', 'defined') | selectattr('Id', 'equalto', 'LCAttributes') | list | first }}"
- name: Display LifecycleController attributes
debug:
ansible.builtin.debug:
var: lc_attributes
- name: Display the value of 'CollectSystemInventoryOnRestart' attribute
debug:
ansible.builtin.debug:
var: lc_attributes['LCAttributes.1.CollectSystemInventoryOnRestart']
# Examples to display the value of all or a single System attribute
@ -97,11 +97,11 @@ EXAMPLES = '''
system_attributes: "{{ result.redfish_facts.entries | selectattr('Id', 'defined') | selectattr('Id', 'equalto', 'SystemAttributes') | list | first }}"
- name: Display System attributes
debug:
ansible.builtin.debug:
var: system_attributes
- name: Display the value of 'PSRedPolicy'
debug:
ansible.builtin.debug:
var: system_attributes['ServerPwr.1.PSRedPolicy']
'''

View file

@ -62,7 +62,7 @@ EXAMPLES = '''
username: "{{ username }}"
password: "{{ password }}"
register: result
- debug:
- ansible.builtin.debug:
msg: "{{ result.redfish_facts.cpu.entries | to_nice_json }}"
- name: Get CPU model
@ -73,7 +73,7 @@ EXAMPLES = '''
username: "{{ username }}"
password: "{{ password }}"
register: result
- debug:
- ansible.builtin.debug:
msg: "{{ result.redfish_facts.cpu.entries.0.Model }}"
- name: Get memory inventory
@ -103,7 +103,7 @@ EXAMPLES = '''
username: "{{ username }}"
password: "{{ password }}"
register: result
- debug:
- ansible.builtin.debug:
msg: "{{ result.redfish_facts.virtual_media.entries | to_nice_json }}"
- name: Get Volume Inventory
@ -114,7 +114,7 @@ EXAMPLES = '''
username: "{{ username }}"
password: "{{ password }}"
register: result
- debug:
- ansible.builtin.debug:
msg: "{{ result.redfish_facts.volume.entries | to_nice_json }}"
- name: Get Session information
@ -125,7 +125,7 @@ EXAMPLES = '''
username: "{{ username }}"
password: "{{ password }}"
register: result
- debug:
- ansible.builtin.debug:
msg: "{{ result.redfish_facts.session.entries | to_nice_json }}"
- name: Get default inventory information
@ -134,7 +134,7 @@ EXAMPLES = '''
username: "{{ username }}"
password: "{{ password }}"
register: result
- debug:
- ansible.builtin.debug:
msg: "{{ result.redfish_facts | to_nice_json }}"
- name: Get several inventories