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

Error in 'Add YUM repository' when installing MongoDB 4.2 #186

Open
ghost opened this issue Oct 9, 2019 · 1 comment
Open

Error in 'Add YUM repository' when installing MongoDB 4.2 #186

ghost opened this issue Oct 9, 2019 · 1 comment

Comments

@ghost
Copy link

ghost commented Oct 9, 2019

Hi,

On CentOS 7.7 / Ansible 2.8.5, when trying to install MongoDB 4.2 I get the error 'failed: [mongodb01.intra.local] (item=4.2) => {"ansible_loop_var": "version_item", "changed": false, "msg": "AnsibleUndefinedVariable: 'dict object' has no attribute u'4.2'", "version_item": "4.2"} in the 'Add YUM repository' task.

Kind regards,

@hyeoksuhan
Copy link
Contributor

I faced the same issue when tried to install MongoDB 4.2 on Amazon linux (not Amazon linux2) using this role.
My temp workaround is that fix the "mongodb_repository" value for 4.2 of "var/Amazon.yml" to 'https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/4.2/x86_64/' on my forked repository and used it.

The repository was referenced at here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant