I am unable to execute acbgen module. I followed provided example in documentations, but when I submit request I got following response:
FAILED! => {"changed": true, "content": "", "debug": "", "msg": "AttributeError("type object 'acbgen' has no attribute 'acbgen'")", "rc": ""}
I tried also psbgen and dbdgen which is working correctly. It looks that modules referring to modules_utils are not working. Maybe I am missing some kind of configuration. Can anybody help?
ansible [core 2.11.2]
config file = None
configured module search path = ['/home/redby/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/redby/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/redby/.ansible/collections:/usr/share/ansible/collections
executable location = /home/redby/.local/bin/ansible
python version = 3.9.1 (default, May 21 2021, 11:40:24) [GCC 8.3.0]
jinja version = 3.0.1
libyaml = True
Collection Version
--------------- -------
ibm.ibm_zos_ims 1.0.1
ansible-playbook [core 2.11.2]
config file = None
configured module search path = ['/home/redby/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /home/redby/.local/lib/python3.9/site-packages/ansible
ansible collection location = /home/redby/.ansible/collections:/usr/share/ansible/collections
executable location = /home/redby/.local/bin/ansible-playbook
python version = 3.9.1 (default, May 21 2021, 11:40:24) [GCC 8.3.0]
jinja version = 3.0.1
libyaml = True
No config file found; using defaults
host_list declined parsing /mnt/c/users/rm648641/source/IMS_Tools_DevOps/inventory/hosts as it did not pass its verify_file() method
auto declined parsing /mnt/c/users/rm648641/source/IMS_Tools_DevOps/inventory/hosts as it did not pass its verify_file() method
Parsed /mnt/c/users/rm648641/source/IMS_Tools_DevOps/inventory/hosts inventory source with ini plugin
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.
PLAYBOOK: acbgen.yml ***************************************************************************************************
1 plays in acbgen.yml
PLAY [Playbook for ACBGEN] *********************************************************************************************
META: ran handlers
TASK [Example of creating ACBs for specific PSBs.] *********************************************************************
task path: /mnt/c/users/rm648641/source/IMS_Tools_DevOps/acbgen.yml:14
Using module file /home/redby/.ansible/collections/ansible_collections/ibm/ibm_zos_ims/plugins/modules/ims_acb_gen.py
Pipelining is enabled.
<usilca11.lvn.broadcom.net> ESTABLISH SSH CONNECTION FOR USER: mrvra01
<usilca11.lvn.broadcom.net> SSH: EXEC sshpass -d10 ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o Port=22 -o 'User="mrvra01"' -o ConnectTimeout=10 -o ControlPath=/home/redby/.ansible/cp/9da73c7060 usilca11.lvn.broadcom.net '/bin/sh -c '"'"'_BPXK_AUTOCVT=ON _ENCODE_FILE_NEW='"'"'"'"'"'"'"'"'“IBM-1047”'"'"'"'"'"'"'"'"' _ENCODE_FILE_EXISTING='"'"'"'"'"'"'"'"'“IBM-1047”'"'"'"'"'"'"'"'"' /usr/lpp/IBM/cyp/v3r9/pyz/bin/python3 && sleep 0'"'"''
<usilca11.lvn.broadcom.net> (1, b'\n{"changed": true, "content": "", "rc": "", "debug": "", "failed": true, "msg": "AttributeError(\\"type object \'acbgen\' has no attribute \'acbgen\'\\")", "exception": " File \\"/tmp/ansible_ims_acb_gen_payload_oa27fo_e/ansible_ims_acb_gen_payload.zip/ansible_collections/ibm/ibm_zos_ims/plugins/modules/ims_acb_gen.py\\", line 293, in run_module\\n", "invocation": {"module_args": {"command_input": "BUILD", "psb_name": ["PACCTDBA"], "dbd_name": ["ACCTDBDA"], "psb_lib": ["IDI.MRVRA01.GSE.PSBLIB"], "dbd_lib": ["IDI.MRVRA01.GSE.DBDLIB"], "acb_lib": "SOME.IMS.ACBLIB", "reslib": ["IMSSYS15.SDFSRESL"], "steplib": ["IMSSYS15.SDFSRESL"], "build_psb": false, "compression": null}}}\n', b'')
<usilca11.lvn.broadcom.net> Failed to connect to the host via ssh:
The full traceback is:
File "/tmp/ansible_ims_acb_gen_payload_oa27fo_e/ansible_ims_acb_gen_payload.zip/ansible_collections/ibm/ibm_zos_ims/plugins/modules/ims_acb_gen.py", line 293, in run_module
fatal: [usilca11.lvn.broadcom.net]: FAILED! => {
"changed": true,
"content": "",
"debug": "",
"invocation": {
"module_args": {
"acb_lib": "IMS.ACBLIB",
"build_psb": false,
"command_input": "BUILD",
"compression": null,
"dbd_lib": [
"IMS.DBDLIB"
],
"dbd_name": [
"ACCTDBDA"
],
"psb_lib": [
"IMS.PSBLIB"
],
"psb_name": [
"PACCTDBA"
],
"reslib": [
"IMSSYS15.SDFSRESL"
],
"steplib": [
"IMSSYS15.SDFSRESL"
]
}
},
"msg": "AttributeError(\"type object 'acbgen' has no attribute 'acbgen'\")",
"rc": ""