You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a task file that is imported by a top-level playbook.
Ansible-lint reports a warning when checking the following file whereas I believe it is mistaken because the task works as expected. I suspect the environment key to cause the warning.
Issue Type
Bug Report
OS / ENVIRONMENT
ansible-lint 6.10.2 using ansible 2.14.1
ansible installation method: pip
ansible-lint installation method: pip
OS: macOS 12.6.1
STEPS TO REPRODUCE
Create the following test.yml file inside a tasks folder.
---
- name: Run npm run prodansible.builtin.command: npm run prodenvironment:
DISABLE_V8_COMPILE_CACHE: 1changed_when: false
Run ansible-lint:
ansible-lint tasks/test.yml
Desired Behavior
No warning is issued.
Actual Behavior
A warning is issued.
The text was updated successfully, but these errors were encountered:
WARNING Listing 1 violation(s) that are fatal
schema[tasks]: {'name': 'Check some command', 'ansible.builtin.command': {'cmd': 'someCommand'}, 'environment': {'my_env_var': 1}, 'register': 'command_result', 'failed_when': 'command_result.rc > 2', 'changed_when': "command_result.stdout != ''"} is not valid under any of the given schemas
Summary
I have a task file that is imported by a top-level playbook.
Ansible-lint reports a warning when checking the following file whereas I believe it is mistaken because the task works as expected. I suspect the
environment
key to cause the warning.Issue Type
OS / ENVIRONMENT
ansible-lint 6.10.2 using ansible 2.14.1
STEPS TO REPRODUCE
Create the following
test.yml
file inside atasks
folder.Run ansible-lint:
Desired Behavior
No warning is issued.
Actual Behavior
A warning is issued.
The text was updated successfully, but these errors were encountered: