You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug Only tested on Linux The /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xml file is copied with the root group instead of mqm, this then means that the setmqweb command fails.
To Reproduce
Run the installation including the setupconsole role
Expected behaviour
The file should be copied or permissions set with the mqm owner and mqm group
Screenshots
Currently deploys as root group
Tell us the platform and version of the machine that ansible is being run on:
Ansible Automation Platform Controller 4.5.12
Tell us the version of ansible being used:
ansible [core 2.18.1]
Tell us the platforms and versions of the machines that the playbook is targetting (Usually supplied in an inventory file):
Linux jcs-mq-001 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Additional context
With permissions I could branch and code the fix....!!?
However this is the update required
roles/setupconsole/tasks/Linux_setupconsole.yml
Current
---
- name: Check if basic registry exists in the install folderansible.builtin.stat:
path: /opt/mqm/web/mq/samp/configuration/basic_registry.xmlregister: basic_registry_result
- name: Check if mqwebuser already exists in target folderansible.builtin.stat:
path: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlregister: target_mqwebuser_result
- name: Set permissions to allow overwrite of target mqwebuser.xml if it already existsbecome: trueansible.builtin.file:
path: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlmode: "0640"when: target_mqwebuser_result.stat.exists
- name: Copying basic registrybecome: trueansible.builtin.copy:
src: /opt/mqm/web/mq/samp/configuration/basic_registry.xmldest: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlremote_src: truemode: "0644"when: basic_registry_result.stat.exists
- name: Ensure correct permissions for mqwebuser.xml to allow setmqweb commandsbecome: trueansible.builtin.file:
path: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlmode: "0640"
Fix
---
- name: Check if basic registry exists in the install folderansible.builtin.stat:
path: /opt/mqm/web/mq/samp/configuration/basic_registry.xmlregister: basic_registry_result
- name: Check if mqwebuser already exists in target folderansible.builtin.stat:
path: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlregister: target_mqwebuser_result
- name: Set permissions to allow overwrite of target mqwebuser.xml if it already existsbecome: trueansible.builtin.file:
path: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlmode: "0640"owner: mqmgroup: mqmwhen: target_mqwebuser_result.stat.exists
- name: Copying basic registrybecome: trueansible.builtin.copy:
src: /opt/mqm/web/mq/samp/configuration/basic_registry.xmldest: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlremote_src: truemode: "0644"when: basic_registry_result.stat.exists
- name: Ensure correct permissions for mqwebuser.xml to allow setmqweb commandsbecome: trueansible.builtin.file:
path: /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xmlmode: "0640"owner: mqmgroup: mqm
The text was updated successfully, but these errors were encountered:
Hi, we'll take a look at the issue however if you do have a solution you would like to contribute, we have a contributors guide that you can use to provide improvements or bug fixes
Describe the bug
Only tested on Linux The /var/mqm/web/installations/Installation1/servers/mqweb/mqwebuser.xml file is copied with the root group instead of mqm, this then means that the
setmqweb
command fails.To Reproduce
Run the installation including the
setupconsole
roleExpected behaviour
The file should be copied or permissions set with the
mqm
owner andmqm
groupScreenshots
Currently deploys as root group
Tell us the platform and version of the machine that ansible is being run on:
Ansible Automation Platform Controller 4.5.12
Tell us the version of ansible being used:
ansible [core 2.18.1]
Tell us the platforms and versions of the machines that the playbook is targetting (Usually supplied in an inventory file):
Linux jcs-mq-001 6.8.0-1017-azure #20-Ubuntu SMP Tue Oct 22 03:43:13 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Additional context
With permissions I could branch and code the fix....!!?
However this is the update required
roles/setupconsole/tasks/Linux_setupconsole.yml
Current
Fix
The text was updated successfully, but these errors were encountered: