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
It should not complain since this is not a variable but a path
Actual Behavior
❯ ansible-lint test.yamlWARNING Listing 1 violation(s) that are fataldeprecated-bare-vars: Possible bare variable 'web/' used in a 'with_community.general.filetree' loop. You should use the full variable syntax ('{{ web/ }}') or convert it to a list if that is not really a variable.test.yaml:4 Task/Handler: TestRead documentation for instructions on how to ignore specific rule violations. Rule Violation Summary count tag profile rule associated tags 1 deprecated-bare-vars basic deprecations Failed: 1 failure(s), 0 warning(s) on 1 files. Last profile that met the validation criteria was 'min'.
The text was updated successfully, but these errors were encountered:
- name: Create SpaceVim.d and subdirectories
ansible.builtin.file:
path: "{{ SPACEVIM_D_DIR }}/{{ item.path }}"
state: directory
mode: "{{ item.mode }}"
with_community.general.filetree:
- "../templates/SpaceVim.d/"
when: item.state == "directory" and ".git" not in item.path
results in this error
deprecated-bare-vars: Possible bare variable '['../templates/SpaceVim.d/']' used in a 'with_community.general.filetree' loop. You should use the full variable syntax ('{{ ['../templates/SpaceVim.d/'] }}') or convert it to a list if that is not really a variable. (warning) # ignored
roles/nvim/tasks/main.yml:146 Task/Handler: Create SpaceVim.d and subdirectories
Summary
Same issue as #1621.
When using
with_community.general.filetree
, I get adeprecated-bare-vars
Issue Type
OS / ENVIRONMENT
macOS 13 (ARM)
STEPS TO REPRODUCE
Desired Behavior
It should not complain since this is not a variable but a path
Actual Behavior
The text was updated successfully, but these errors were encountered: