Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run the mq-install role using Ansible Automation Platform[BUG] #101

Open
MQGIT opened this issue Mar 28, 2024 · 1 comment
Open
Assignees
Labels
bug Something isn't working

Comments

@MQGIT
Copy link

MQGIT commented Mar 28, 2024

Describe the bug
AAP job to install MQ on two VMs fails with the below error.

To Reproduce
Steps to reproduce the behaviour (For Example):

  1. Create a job template with the git repo
  2. Update the files in the repo with your inventory and users
  3. Run the playbook
  4. See the following Error

executable location = /usr/bin/ansible-playbook
python version = 3.9.16 (main, Dec 21 2022, 10:57:18) [GCC 8.5.0 20210514 (Red Hat 8.5.0-17)] (/usr/bin/python3.9)
jinja version = 3.1.2
libyaml = True
Using /etc/ansible/ansible.cfg as config file
SSH password:
host_list declined parsing /runner/inventory/hosts as it did not pass its verify_file() method
Parsed /runner/inventory/hosts inventory source with script plugin
ERROR! couldn't resolve module/action 'queue_manager'. This often indicates a misspelling, missing collection, or incorrect module path.
The error appears to be in '/runner/project/playbooks/mq-setup.yml': line 17, column 7, but may
be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
tasks:
- name: Create a queue manager
^ here

Expected behaviour
Successfully installs MQ on the inventory files.

Screenshots
If applicable, add screenshots to help explain your problem. These can include the error message or screenshots of your config for extra context.

Tell us the platform and version of the machine that ansible is being run on:

  • OS: AAP running on RHEL9
  • Inventory machines are Ubuntu and RHEL9

Tell us the version of ansible being used:

  • Ansible [core 2.14.9]

Tell us the platforms and versions of the machines that the playbook is targetting (Usually supplied in an inventory file):

  • OS: Ubuntu & RHEL9
  • Version Ubuntu 22.04.4

Additional context
Add any other context about the problem here.

@MQGIT MQGIT added the bug Something isn't working label Mar 28, 2024
@marianavillarp marianavillarp self-assigned this Apr 22, 2024
@marianavillarp
Copy link
Contributor

Hi, thanks for raising the issue.
Seems like ansible is not aware of our queue_manager module. When using the github repo you need to also add to your ansible_library variable the path to the repo's module with:

export ANSIBLE_LIBRARY=${ANSIBLE_LIBRARY}:<PATH-TO-THE-REPO>/mq-ansible/plugins/modules

Let me know if this solves the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants