Hi Team,
We are not able to apply the latest service pack through ansible playbook. We are getting following error message. Would you please help ?
ansible-playbook nim_suma.yml
PLAY [NIM check on AIX playbook] ************************************************************************************************************************************************************************************************************
TASK [Check, download and create the NIM resource to install latest updates] ****************************************************************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'NoneType' object has no attribute 'group'
fatal: [dsmjcanim01]: FAILED! => {"changed": false, "module_stderr": "Connection to dsmjcanim01 closed.\r\n", "module_stdout": "Traceback (most recent call last):\r\n File \"/.ansible/tmp/ansible-tmp-1701253713.2541199-1992665-277572882584134/AnsiballZ_nim_suma.py\", line 107, in <module>\r\n _ansiballz_main()\r\n File \"/.ansible/tmp/ansible-tmp-1701253713.2541199-1992665-277572882584134/AnsiballZ_nim_suma.py\", line 99, in _ansiballz_main\r\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\r\n File \"/.ansible/tmp/ansible-tmp-1701253713.2541199-1992665-277572882584134/AnsiballZ_nim_suma.py\", line 47, in invoke_module\r\n runpy.run_module(mod_name='ansible_collections.ibm.power_aix.plugins.modules.nim_suma', init_globals=dict(_module_fqn='ansible_collections.ibm.power_aix.plugins.modules.nim_suma', _modlib_path=modlib_path),\r\n File \"/opt/freeware/lib64/python3.9/runpy.py\", line 225, in run_module\r\n return _run_module_code(code, init_globals, run_name, mod_spec)\r\n File \"/opt/freeware/lib64/python3.9/runpy.py\", line 97, in _run_module_code\r\n _run_code(code, mod_globals, init_globals,\r\n File \"/opt/freeware/lib64/python3.9/runpy.py\", line 87, in _run_code\r\n exec(code, run_globals)\r\n File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 1077, in <module>\r\n File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 1066, in main\r\n File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 873, in suma_download\r\n File \"/tmp/ansible_nim_suma_payload_y3fthlj4/ansible_nim_suma_payload.zip/ansible_collections/ibm/power_aix/plugins/modules/nim_suma.py\", line 541, in compute_rq_name\r\nAttributeError: 'NoneType' object has no attribute 'group'\r\n", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}
PLAY RECAP **********************************************************************************************************************************************************************************************************************************
dsmjcanim01 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Content of playbook:
---
- name: "NIM check on AIX playbook"
hosts: "{{host_name}}"
user: root
vars:
host_name: dsmjcanim01
download_dir_val: /export/nim
oslevel_val: Latest
gather_facts: false
become: true
collections:
- ibm.power_aix
tasks:
- name: "Check, download and create the NIM resource to install latest updates"
nim_suma:
action: download
targets: dsmjca001s
oslevel: "{{ oslevel_val }}"
download_dir: "{{ download_dir_val }}"
register: result
- debug: var=result
------------------------------
Manoj Kumar
------------------------------