-
Notifications
You must be signed in to change notification settings - Fork 670
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
Allowed become_methods in ansible-lint don't match with what ansible provides #3481
Comments
@ajinkyau Please make a first workaround by adding the missing common values to the enum but also by changing the definition to allow a random string too. Later, i will upgrade compat Runtime with something similar to below to allow us to retrieve the exact list of become and check from within python code if the given string is known become. Basically the schema will no longer validate the string, we will do it in python.
|
* Enable access to available plugins Related: ansible/ansible-lint#3481
Summary
List of become_methods in ansible:
What ansible-lint allows:
ansible-lint/src/ansiblelint/schemas/ansible.json
Lines 43 to 65 in 4232927
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Valid ansible tasks:
Desired Behavior
Ansible-lint doesn't generate error on above code.
Actual Behavior
If I change
become_method
to something that ansible-lint allows - no errors, but I needbecome_method: community.general.sudosu
which makes impossible to use ansible-lint.The text was updated successfully, but these errors were encountered: