My Ansible task to install Liberty on an AIX server worked as expected and then when I tried another version it just fails now. It's possible that I am not seeing the actual cause of my issue but thus far it seems like the underscore after ...liberty.ND in the package name is not being interpreted correctly.
- name: Perform tasks as mwuser
become: true
become_user: mwuser
block:
- name: Install liberty with java 8
ansible.builtinmand:
argv:
- ./imcl
- install
- "com.ibm.websphere.liberty.ND_{{ liberty_package }}"
- "{{ java8_package }}"
- -repositories
- "{{ liberty_repo }}"
- -installationDirectory
- "{{ wlp_home }}"
- -sharedResourcesDirectory
- "{{ shared_directory }}"
- -secureStorageFile
- "{{ mwuser_home }}/credential.store"
- -masterPasswordFile
- "{{ mwuser_home }}/master_password_file.txt"
- -acceptLicense
chdir: "{{ eclipse_tools }}"
register: liberty_install
changed_when: liberty_install.rc != 0
When I run the playbook from AAP I get the following log from this task. All I can see wrong is the missing underscore in the stderr and stderr_lines.
{
"changed": true,
"stdout": "",
"stderr": "CRIMA1004E ERROR: The com.ibm.websphere.liberty.ND 24.0.12.20241119_0657 package cannot be found.",
"rc": 1,
"cmd": [
"./imcl",
"install",
"com.ibm.websphere.liberty.ND_24.0.12.20241119_0657",
"com.ibm.java.jdk.v8_8.0.8035.20241125_0150",
"-repositories",
".ibm.websphere.liberty.ND",
"-installationDirectory",
"/usr/IBM/WebSphere/Liberty/wlp",
"-sharedResourcesDirectory",
"/usr/IBM/IMShared",
"-secureStorageFile",
"/home/mwuser/credential.store",
"-masterPasswordFile",
"/home/mwuser/master_password_file.txt",
"-acceptLicense"
],
"start": "2025-03-20 10:07:42.133644",
"end": "2025-03-20 10:07:51.363557",
"delta": "0:00:09.229913",
"msg": "non-zero return code",
"invocation": {
"module_args": {
"argv": [
"./imcl",
"install",
"com.ibm.websphere.liberty.ND_24.0.12.20241119_0657",
"com.ibm.java.jdk.v8_8.0.8035.20241125_0150",
"-repositories",
".ibm.websphere.liberty.ND",
"-installationDirectory",
"/usr/IBM/WebSphere/Liberty/wlp",
"-sharedResourcesDirectory",
"/usr/IBM/IMShared",
"-secureStorageFile",
"/home/mwuser/credential.store",
"-masterPasswordFile",
"/home/mwuser/master_password_file.txt",
"-acceptLicense"
],
"chdir": "/usr/IBM/InstallationManager/eclipse/tools",
"_uses_shell": false,
"stdin_add_newline": true,
"strip_empty_ends": true,
"_raw_params": null,
"executable": null,
"creates": null,
"removes": null,
"stdin": null
}
},
"stdout_lines": [],
"stderr_lines": [
"CRIMA1004E ERROR: The com.ibm.websphere.liberty.ND 24.0.12.20241119_0657 package cannot be found."
],
"_ansible_no_log": false
}
I have tried many different solutions and they all have failed so far. I also did the same install from command line with all the same versions and it was successful. Any help would be much appreciated!
Update: It appears the missing underscore is a red herring. When I run listAvailablePackages on the server I see the package I want but when I create a task in my playbook to do the same I only see com.ibm.websphere.liberty.ND_24.0.6.20240603_2002 and not the package I am trying to install which is com.ibm.websphere.liberty.ND_24.0.12.20241119_0657.
Why would this be and how would I resolve it?
My Ansible task to install Liberty on an AIX server worked as expected and then when I tried another version it just fails now. It's possible that I am not seeing the actual cause of my issue but thus far it seems like the underscore after ...liberty.ND in the package name is not being interpreted correctly.
- name: Perform tasks as mwuser
become: true
become_user: mwuser
block:
- name: Install liberty with java 8
ansible.builtinmand:
argv:
- ./imcl
- install
- "com.ibm.websphere.liberty.ND_{{ liberty_package }}"
- "{{ java8_package }}"
- -repositories
- "{{ liberty_repo }}"
- -installationDirectory
- "{{ wlp_home }}"
- -sharedResourcesDirectory
- "{{ shared_directory }}"
- -secureStorageFile
- "{{ mwuser_home }}/credential.store"
- -masterPasswordFile
- "{{ mwuser_home }}/master_password_file.txt"
- -acceptLicense
chdir: "{{ eclipse_tools }}"
register: liberty_install
changed_when: liberty_install.rc != 0
When I run the playbook from AAP I get the following log from this task. All I can see wrong is the missing underscore in the stderr and stderr_lines.
{
"changed": true,
"stdout": "",
"stderr": "CRIMA1004E ERROR: The com.ibm.websphere.liberty.ND 24.0.12.20241119_0657 package cannot be found.",
"rc": 1,
"cmd": [
"./imcl",
"install",
"com.ibm.websphere.liberty.ND_24.0.12.20241119_0657",
"com.ibm.java.jdk.v8_8.0.8035.20241125_0150",
"-repositories",
"https://www.ibm/software/repositorymanager/com.ibm.websphere.liberty.ND",
"-installationDirectory",
"/usr/IBM/WebSphere/Liberty/wlp",
"-sharedResourcesDirectory",
"/usr/IBM/IMShared",
"-secureStorageFile",
"/home/mwuser/credential.store",
"-masterPasswordFile",
"/home/mwuser/master_password_file.txt",
"-acceptLicense"
],
"start": "2025-03-20 10:07:42.133644",
"end": "2025-03-20 10:07:51.363557",
"delta": "0:00:09.229913",
"msg": "non-zero return code",
"invocation": {
"module_args": {
"argv": [
"./imcl",
"install",
"com.ibm.websphere.liberty.ND_24.0.12.20241119_0657",
"com.ibm.java.jdk.v8_8.0.8035.20241125_0150",
"-repositories",
"https://www.ibm/software/repositorymanager/com.ibm.websphere.liberty.ND",
"-installationDirectory",
"/usr/IBM/WebSphere/Liberty/wlp",
"-sharedResourcesDirectory",
"/usr/IBM/IMShared",
"-secureStorageFile",
"/home/mwuser/credential.store",
"-masterPasswordFile",
"/home/mwuser/master_password_file.txt",
"-acceptLicense"
],
"chdir": "/usr/IBM/InstallationManager/eclipse/tools",
"_uses_shell": false,
"stdin_add_newline": true,
"strip_empty_ends": true,
"_raw_params": null,
"executable": null,
"creates": null,
"removes": null,
"stdin": null
}
},
"stdout_lines": [],
"stderr_lines": [
"CRIMA1004E ERROR: The com.ibm.websphere.liberty.ND 24.0.12.20241119_0657 package cannot be found."
],
"_ansible_no_log": false
}
I have tried many different solutions and they all have failed so far. I also did the same install from command line with all the same versions and it was successful. Any help would be much appreciated!
Update: It appears the missing underscore is a red herring. When I run listAvailablePackages on the server I see the package I want but when I create a task in my playbook to do the same I only see com.ibm.websphere.liberty.ND_24.0.6.20240603_2002 and not the package I am trying to install which is com.ibm.websphere.liberty.ND_24.0.12.20241119_0657.
Why would this be and how would I resolve it?
Share Improve this question edited Mar 20 at 16:07 Jason Skeel asked Mar 20 at 15:05 Jason SkeelJason Skeel 355 bronze badges1 Answer
Reset to default 0I figured it out!
There is a difference between a new sandbox server and one of our older servers I have been testing on. When I run the following on the new server with AIX 7.3 I only get one ND_24 package back as available.
./imcl listAvailablePackages -repositories https://www.ibm/software/repositorymanager/com.ibm.websphere.liberty.ND -secureStorageFile /home/mwuser/credential.store -masterPasswordFile /home/mwuser/master_password_file.txt
com.ibm.websphere.liberty.ND_24.0.6.20240603_2002
When I run the command on an older server running AIX 7.2 I see all of these packages available.
com.ibm.websphere.liberty.ND_24.0.1.20240115_2042
com.ibm.websphere.liberty.ND_24.0.2.20240212_1928
com.ibm.websphere.liberty.ND_24.0.3.20240311_1901
com.ibm.websphere.liberty.ND_24.0.4.20240408_2001
com.ibm.websphere.liberty.ND_24.0.5.20240506_1951
com.ibm.websphere.liberty.ND_24.0.6.20240603_2002
com.ibm.websphere.liberty.ND_24.0.7.20240701_1102
com.ibm.websphere.liberty.ND_24.0.8.20240729_1903
com.ibm.websphere.liberty.ND_24.0.9.20240827_1743
com.ibm.websphere.liberty.ND_24.0.10.20240923_1638
com.ibm.websphere.liberty.ND_24.0.11.20241021_1102
com.ibm.websphere.liberty.ND_24.0.12.20241119_0657
So there is something different between the versions of AIX causing this.