We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
var_naming_pattern is buggy for set_fact variables
ansible-lint --version
ansible-lint 6.0.2 using ansible 2.12.4
.ansible-lint file:
var_naming_pattern: "^[a-z][a-z0-9_]*[a-z0-9]__[a-z][a-z0-9_]*[a-z0-9]$"
in a role set a variable in defaults/main.yml to:
k8s_grafana_users__namespace: monitoring
in tasks/main.yml set:
- name: foobar ansible.builtin.set_fact: k8s_grafana_users__namespace: "foo"
no error regarding variable pattern neither in defaults nor in the tasks file
var-naming: Task uses 'set_fact' to define variables that violates variable naming standards tasks/main.yml:2 Task/Handler: foobar
defaults/main.yml is ok but set_fact variable with the same name is not ok!
The text was updated successfully, but these errors were encountered:
This looks like a good idea, a pull-requests would be welcomed.
Sorry, something went wrong.
Hi team, if no one hasn't started to work on this, I'd like to take a look.
Successfully merging a pull request may close this issue.
Summary
var_naming_pattern is buggy for set_fact variables
Issue Type
Ansible and Ansible Lint details
ansible-lint --version
STEPS TO REPRODUCE
.ansible-lint file:
in a role set a variable in defaults/main.yml to:
in tasks/main.yml set:
Desired Behavior
no error regarding variable pattern neither in defaults nor in the tasks file
Actual Behavior
defaults/main.yml is ok but set_fact variable with the same name is not ok!
The text was updated successfully, but these errors were encountered: