ibmi_iasp – Control IASP
Synopsis
Control IASP.
For IBM i V7R2, PTF SI72162 is required.
For IBM i V7R3, PTF SI72161 is required.
For non-IBM i targets, no need.
Parameters
- asp_type
The asp_type of new create iasp.
required: falsetype: strdefault: *PRIMARYchoices: *PRIMARY, *SECONDARY, *UDFS- become_user
The name of the user profile that the IBM i task will run under.
Use this option to set a user with desired privileges to run the task.
required: falsetype: str- become_user_password
Use this option to set the password of the user specified in
become_user
.required: falsetype: str- disks
The list of the un-configure disks.
required: falsetype: listelements: str- extra_parameters
Extra parameter is appended at the end of create operation.
required: falsetype: strdefault:- joblog
If set to
true
, append JOBLOG to stderr/stderr_lines.required: falsetype: bool- name
The name of the iasp.
required: Truetype: str- operation
create
/delete
/add_disks
are idempotent actions that will not run commands unless necessary.view
will return the iasp stateAt least one of operation are required.
required: Truetype: strchoices: create, add_disks, delete, display- primary_asp
The primary_asp of new create iasp.
required: falsetype: str- synchronous
Synchronous execute the iasp command.
required: falsetype: booldefault: True
Examples
- name: create an IASP
ibm.power_ibmi.ibmi_iasp:
name: 'IASP1'
operation: 'create'
disks: ['DMP002', 'DMP019']
become_user: 'USER1'
become_user_password: 'yourpassword'
Return Values
- job_log
The IBM i job log of the task executed.returned: alwaystype: listsample:[{"FROM_INSTRUCTION": "318F", "FROM_LIBRARY": "QSYS", "FROM_MODULE": "", "FROM_PROCEDURE": "", "FROM_PROGRAM": "QWTCHGJB", "FROM_USER": "CHANGLE", "MESSAGE_FILE": "QCPFMSG", "MESSAGE_ID": "CPD0912", "MESSAGE_LIBRARY": "QSYS", "MESSAGE_SECOND_LEVEL_TEXT": "Cause . . . . . : This message is used by application programs as a general escape message.", "MESSAGE_SUBTYPE": "", "MESSAGE_TEXT": "Printer device PRT01 not found.", "MESSAGE_TIMESTAMP": "2020-05-20-21.41.40.845897", "MESSAGE_TYPE": "DIAGNOSTIC", "ORDINAL_POSITION": "5", "SEVERITY": "20", "TO_INSTRUCTION": "9369", "TO_LIBRARY": "QSYS", "TO_MODULE": "QSQSRVR", "TO_PROCEDURE": "QSQSRVR", "TO_PROGRAM": "QSQSRVR"}]- start
The command execution start time.returned: alwaystype: strsample: 2019-12-02 11:07:53.757435- end
The command execution end time.returned: alwaystype: strsample: 2019-12-02 11:07:54.064969- delta
The command execution delta time.returned: alwaystype: strsample: 0:00:00.307534- stdout
The command standard output.returned: alwaystype: strsample: CPCB719: Configure Device ASP *DELETE request completed.- stderr
The command standard error.returned: alwaystype: strsample: Generic failure- cmd
The command executed by the task.returned: alwaystype: strsample: CFGDEVASP ASPDEV(YFTEST) ACTION(*DELETE) CONFIRM(*NO)- rc
The command return code (0 means success, non-zero means failure).returned: alwaystype: intsample: 255- asp_info
The asp_info of the identify iasp.returned: alwaystype: listsample:[{"ASP_NUMBER": "144", "ASP_STATE": "VARIED OFF", "ASP_TYPE": "PRIMARY", "BALANCE_DATA_MOVED": "0", "BALANCE_DATA_REMAINING": "0", "BALANCE_STATUS": "", "BALANCE_TIMESTAMP": "", "BALANCE_TYPE": "", "CHANGES_WRITTEN_TO_DISK": "YES", "COMPRESSED_DISK_UNITS": "NONE", "COMPRESSION_RECOVERY_POLICY": "OVERFLOW IMMEDIATE", "DEVICE_DESCRIPTION_NAME": "", "DISK_UNITS_PRESENT": "ALL", "END_IMMEDIATE": "", "ERROR_LOG_SPACE": "0", "MACHINE_LOG_SPACE": "0", "MACHINE_TRACE_SPACE": "0", "MAIN_STORAGE_DUMP_SPACE": "0", "MICROCODE_SPACE": "0", "MULTIPLE_CONNECTION_DISK_UNITS": "YES", "NUMBER_OF_DISK_UNITS": "1", "OVERFLOW_RECOVERY_RESULT": "", "OVERFLOW_STORAGE": "0", "PRIMARY_ASP_RESOURCE_NAME": "", "PROTECTED_CAPACITY": "0", "PROTECTED_CAPACITY_AVAILABLE": "0", "RDB_NAME": "IASP1", "RESOURCE_NAME": "IASP1", "STORAGE_THRESHOLD_PERCENTAGE": "90", "SYSTEM_STORAGE": "2", "TOTAL_CAPACITY": "0", "TOTAL_CAPACITY_AVAILABLE": "0", "TRACE_DURATION": "0", "TRACE_STATUS": "", "TRACE_TIMESTAMP": "", "UNPROTECTED_CAPACITY": "0", "UNPROTECTED_CAPACITY_AVAILABLE": "0"}]- stdout_lines
The command standard output split in lines.returned: alwaystype: listsample:["CPCB719: Configure Device ASP *DELETE request completed."]- stderr_lines
The command standard error split in lines.returned: alwaystype: listsample:["Generic failure"]