Skip to content

Commit c0ba8e9

Browse files
committed
ansible-lint and doc update
Signed-off-by: Nitish K Mishra <[email protected]>
1 parent a5c549b commit c0ba8e9

File tree

5 files changed

+184
-185
lines changed

5 files changed

+184
-185
lines changed

plugins/modules/hdcrypt_auth.py

Lines changed: 82 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -93,89 +93,88 @@
9393
"""
9494

9595
EXAMPLES = r"""
96-
- name: "Initialize a authentication method"
97-
ibm.power_aix.hdcrypt_auth:
98-
action: initialize
99-
device: testlv
100-
auth_name: initpwd
101-
password: testpass
102-
103-
- name: Add a phasphrase authentication method
104-
ibm.power_aix.hdcrypt_auth:
105-
action: add
106-
device: testlv
107-
auth_name: pwd2
108-
auth_type: pwd
109-
password: 'testpass'
110-
111-
- name: Add a keyfile authentication method
112-
ibm.power_aix.hdcrypt_auth:
113-
action: add
114-
device: testlv
115-
auth_name: file_2
116-
auth_type: keyfile
117-
auth_detail: /key2
118-
119-
- name: Add a pks authentication method
120-
ibm.power_aix.hdcrypt_auth:
121-
action: add
122-
device: testlv
123-
auth_name: test_pks
124-
auth_type: pks
125-
126-
- name: Delete a passphrase auth method
127-
ibm.power_aix.hdcrypt_auth:
128-
action: delete
129-
device: testlv
130-
auth_type: pwd
131-
auth_name: pwd5
132-
password: "testpass"
133-
134-
- name: Delete a pks auth method
135-
ibm.power_aix.hdcrypt_auth:
136-
action: delete
137-
device: testlv
138-
auth_type: pks
139-
auth_name: test_pks
140-
141-
- name: Delete a keyfile auth method
142-
ibm.power_aix.hdcrypt_auth:
143-
action: delete
144-
device: testlv
145-
auth_type: keyfile
146-
auth_name: file_2
147-
auth_detail: /key2
148-
149-
- name: Unlock using keyfile authentication method
150-
ibm.power_aix.hdcrypt_auth:
151-
action: unlock
152-
device: testlv
153-
auth_type: keyfile
154-
auth_detail: /key2
155-
156-
- name: Check auth method passphrase
157-
ibm.power_aix.hdcrypt_auth:
158-
action: check
159-
device: testlv
160-
auth_name: pwd5
161-
auth_type: pwd
162-
password: 'testpass'
163-
164-
- name: Check auth method passphrase using keyfile
165-
ibm.power_aix.hdcrypt_auth:
166-
action: check
167-
device: testlv
168-
auth_name: file2
169-
auth_type: keyfile
170-
auth_detail: /key2
171-
172-
- name: Check pks authentication method using pks
173-
ibm.power_aix.hdcrypt_auth:
174-
action: check
175-
device: testlv
176-
auth_name: test_pks
177-
auth_type: pks
178-
96+
- name: "Initialize a authentication method"
97+
ibm.power_aix.hdcrypt_auth:
98+
action: initialize
99+
device: testlv
100+
auth_name: initpwd
101+
password: testpass
102+
103+
- name: Add a phasphrase authentication method
104+
ibm.power_aix.hdcrypt_auth:
105+
action: add
106+
device: testlv
107+
auth_name: pwd2
108+
auth_type: pwd
109+
password: 'testpass'
110+
111+
- name: Add a keyfile authentication method
112+
ibm.power_aix.hdcrypt_auth:
113+
action: add
114+
device: testlv
115+
auth_name: file_2
116+
auth_type: keyfile
117+
auth_detail: /key2
118+
119+
- name: Add a pks authentication method
120+
ibm.power_aix.hdcrypt_auth:
121+
action: add
122+
device: testlv
123+
auth_name: test_pks
124+
auth_type: pks
125+
126+
- name: Delete a passphrase auth method
127+
ibm.power_aix.hdcrypt_auth:
128+
action: delete
129+
device: testlv
130+
auth_type: pwd
131+
auth_name: pwd5
132+
password: "testpass"
133+
134+
- name: Delete a pks auth method
135+
ibm.power_aix.hdcrypt_auth:
136+
action: delete
137+
device: testlv
138+
auth_type: pks
139+
auth_name: test_pks
140+
141+
- name: Delete a keyfile auth method
142+
ibm.power_aix.hdcrypt_auth:
143+
action: delete
144+
device: testlv
145+
auth_type: keyfile
146+
auth_name: file_2
147+
auth_detail: /key2
148+
149+
- name: Unlock using keyfile authentication method
150+
ibm.power_aix.hdcrypt_auth:
151+
action: unlock
152+
device: testlv
153+
auth_type: keyfile
154+
auth_detail: /key2
155+
156+
- name: Check auth method passphrase
157+
ibm.power_aix.hdcrypt_auth:
158+
action: check
159+
device: testlv
160+
auth_name: pwd5
161+
auth_type: pwd
162+
password: 'testpass'
163+
164+
- name: Check auth method passphrase using keyfile
165+
ibm.power_aix.hdcrypt_auth:
166+
action: check
167+
device: testlv
168+
auth_name: file2
169+
auth_type: keyfile
170+
auth_detail: /key2
171+
172+
- name: Check pks authentication method using pks
173+
ibm.power_aix.hdcrypt_auth:
174+
action: check
175+
device: testlv
176+
auth_name: test_pks
177+
auth_type: pks
179178
"""
180179

181180
RETURN = r"""

plugins/modules/nmon.py

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -254,36 +254,36 @@
254254
"""
255255

256256
EXAMPLES = r"""
257-
- name: Generate the nmon recording in the current directory for two hours, capturing data every 30 seconds
258-
ibm.power_aix.nmon:
259-
spreadsheet_output: true
260-
interval_seconds: 30
261-
number_of_snapshots: 240
262-
output_path: /nmonfiles/
263-
264-
- name: Generate nmon recording that includes raw kernal section
265-
ibm.power_aix.nmon:
266-
spreadsheet_output: true
267-
interval_seconds: 30
268-
number_of_snapshots: 2
269-
include_raw_kernal_section: true
270-
output_path: /nmonfiles/kernal_data
271-
272-
- name: Generate nmon recording that includes live page analysis
273-
ibm.power_aix.nmon:
274-
spreadsheet_output: true
275-
interval_seconds: 30
276-
number_of_snapshots: 4
277-
include_large_page_analysis: true
278-
output_path: /nmonfiles/livepage_data
279-
280-
- name: Generate nmon recording that includes nfsv4 section in the recording mode
281-
ibm.power_aix.nmon:
282-
spreadsheet_output: true
283-
interval_seconds: 30
284-
number_of_snapshots: 2
285-
include_nfsv4_section: true
286-
output_path: /nmonfiles/nfsv4_data
257+
- name: Generate the nmon recording in the current directory for two hours, capturing data every 30 seconds
258+
ibm.power_aix.nmon:
259+
spreadsheet_output: true
260+
interval_seconds: 30
261+
number_of_snapshots: 240
262+
output_path: /nmonfiles/
263+
264+
- name: Generate nmon recording that includes raw kernal section
265+
ibm.power_aix.nmon:
266+
spreadsheet_output: true
267+
interval_seconds: 30
268+
number_of_snapshots: 2
269+
include_raw_kernal_section: true
270+
output_path: /nmonfiles/kernal_data
271+
272+
- name: Generate nmon recording that includes live page analysis
273+
ibm.power_aix.nmon:
274+
spreadsheet_output: true
275+
interval_seconds: 30
276+
number_of_snapshots: 4
277+
include_large_page_analysis: true
278+
output_path: /nmonfiles/livepage_data
279+
280+
- name: Generate nmon recording that includes nfsv4 section in the recording mode
281+
ibm.power_aix.nmon:
282+
spreadsheet_output: true
283+
interval_seconds: 30
284+
number_of_snapshots: 2
285+
include_nfsv4_section: true
286+
output_path: /nmonfiles/nfsv4_data
287287
"""
288288

289289
RETURN = r"""

plugins/modules/pagingspace.py

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -154,61 +154,61 @@
154154
"""
155155

156156
EXAMPLES = r"""
157-
- name: List paging space summary
158-
ibm.power_aix.pagingspace:
159-
action: list
160-
include_summary: true
161-
162-
- name: List all the paging spaces
163-
ibm.power_aix.pagingspace:
164-
action: list
165-
list_all: true
166-
include_summary: true
167-
output_list_format: true
168-
169-
- name: Create a lv paging space
170-
ibm.power_aix.pagingspace:
171-
action: create
172-
activate_immediately: false
173-
ps_type: lv
174-
volume_group: rootvg
175-
logical_partitions: 2
176-
177-
- name: Create nfs paging space
178-
ibm.power_aix.pagingspace:
179-
action: create
180-
activate_immediately: true
181-
ps_type: nfs
182-
nfs_server_hostname: hostname
183-
nfs_server_pathname: pathname
184-
185-
- name: Modify a particular paging space, add lpars and change checksum size
186-
ibm.power_aix.pagingspace:
187-
action: modify
188-
logical_partitions_add: 2
189-
checksum_size: 8
190-
use_on_next_swapon: True
191-
ps_name: paging00
192-
193-
- name: Activate all paging spaces
194-
ibm.power_aix.pagingspace:
195-
action: activate
196-
activate_all_ps: true
197-
198-
- name: Activate a paging space
199-
ibm.power_aix.pagingspace:
200-
action: activate
201-
ps_name: /dev/paging00
202-
203-
- name: Deactivate a paging space
204-
ibm.power_aix.pagingspace:
205-
action: deactivate
206-
ps_name: /dev/paging00
207-
208-
- name: Remove a paging space
209-
ibm.power_aix.pagingspace:
210-
action: remove
211-
ps_name: paging00
157+
- name: List paging space summary
158+
ibm.power_aix.pagingspace:
159+
action: list
160+
include_summary: true
161+
162+
- name: List all the paging spaces
163+
ibm.power_aix.pagingspace:
164+
action: list
165+
list_all: true
166+
include_summary: true
167+
output_list_format: true
168+
169+
- name: Create a lv paging space
170+
ibm.power_aix.pagingspace:
171+
action: create
172+
activate_immediately: false
173+
ps_type: lv
174+
volume_group: rootvg
175+
logical_partitions: 2
176+
177+
- name: Create nfs paging space
178+
ibm.power_aix.pagingspace:
179+
action: create
180+
activate_immediately: true
181+
ps_type: nfs
182+
nfs_server_hostname: hostname
183+
nfs_server_pathname: pathname
184+
185+
- name: Modify a particular paging space, add lpars and change checksum size
186+
ibm.power_aix.pagingspace:
187+
action: modify
188+
logical_partitions_add: 2
189+
checksum_size: 8
190+
use_on_next_swapon: true
191+
ps_name: paging00
192+
193+
- name: Activate all paging spaces
194+
ibm.power_aix.pagingspace:
195+
action: activate
196+
activate_all_ps: true
197+
198+
- name: Activate a paging space
199+
ibm.power_aix.pagingspace:
200+
action: activate
201+
ps_name: /dev/paging00
202+
203+
- name: Deactivate a paging space
204+
ibm.power_aix.pagingspace:
205+
action: deactivate
206+
ps_name: /dev/paging00
207+
208+
- name: Remove a paging space
209+
ibm.power_aix.pagingspace:
210+
action: remove
211+
ps_name: paging00
212212
"""
213213

214214
RETURN = r"""

plugins/modules/vmstat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
119119
- name: Run vmstat with showing paging stat
120120
vmstat_command:
121-
show_paging_stats : true
121+
show_paging_stats: true
122122
wpar_name: "ALL"
123123
interval: 1
124124
count: 3

0 commit comments

Comments
 (0)