-
Notifications
You must be signed in to change notification settings - Fork 667
Allow bypassing role name checking #3549
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
Allow bypassing role name checking #3549
Conversation
Hi @briantist Could you whether this PR address your issue? Ensure |
This PR looks ok to me but I want confirmation from someone else that it is fixing that issue. |
I can't comment on if this PR itself is fixing the problem as I don't have a way to test it, but setting As far as I can tell this PR will set the same value, so I would think this will solve the problem. (Using '2' as the value does mean you have to use the fully-qualified role name in |
How to verify this PR pip install git+https://github.com/zhan9san/molecule@feature/support-role-name-check If role name is invalid, such as Run test without
|
@zhan9san thank you, I definitely would like to try this out, this week is very busy for me and I'll be away from the computer much more than usual, so I may not be able to try it for a few days. |
@zhan9san Can you also rebase this, so I can include it in release? Thanks. |
It is rebased. Please take a look. |
So if I'm reading this right, I should set: role_name_check: 1 In my
Should I still keep |
Yes. And there is no need to keep role-name in lint file skip_list. Does it work for you? |
Right now I'm not setup to test on the bleeding edge release but may try it out in a bit. Do you know when the next stable release will hit pip? At that point it's just a matter of waiting until my CI runs again. |
I am afraid I can't give you an exact date. |
@geerlingguy I am sure you know how to use |
I'm still getting a
The role I'm testing with (at the latest commit): https://github.com/geerlingguy/ansible-role-php-mysql
And It seems like the test at least progresses beyond that warning now (previously it was an |
I think that's expected when you set it to 1. Try setting it to 2 - I believe that suppresses the warning. |
Ah, right you are! Updating that now. Edit: Works with |
If it's set to 1, we are trying to remind the user this is still not a recommended way. Besides, it does not block users. |
Does this requires using a more recent version of ansible > 2.9.6 ? Seem to be hitting the issue even of setting the
|
This feature is included in Could you update the molecule and try again? |
@zhan9san Not sure what is pulling the older version of molecule, since its not pinned int tox.ini. Does this require more recent version of ansible-lint or ansible?
https://jenkins.opendaylight.org/releng/job/lf-infra-ansible-roles-tox-verify-any/668/console |
Neither We cannot identify the dependency tree from Jenkins log. Could you list the dependencies via pipdeptree? |
Fix ansible/ansible-compat#78