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
~ and environment variables are not expanded properly when specified as exclude_paths or rulesdir both as cli arguments when using -r=... or --exclude=~... or when used in .ansible-lint config file.
ansible-lint -r=~/my-ansible-lint-rules --exclude=~/.ansible/roles -vvDEBUG Logging initialized to level 10DEBUG Options: Namespace(colored=True, config_file=None, display_relative_path=True, exclude_paths=[PosixPath('/tmp/~/.ansible/roles')], format='plain', listrules=False, listtags=False, parseable=False, parseable_severity=False, playbook=[], quiet=False, rulesdir=[PosixPath('/tmp/~/my-ansible-lint-rules')], skip_list=[], tags=[], use_default_rules=False, verbosity=2)DEBUG Loading rules from /tmp/~/my-ansible-lint-rulesINFO Discovering files to lint: git ls-files *.yaml *.ymlWARNING Failed to discover yaml files to lint using git: fatal: not a git repository (or any of the parent directories): .gitINFO Found roles: INFO Found playbooks:
cat .ansible-lintexclude_paths:- ~/.ansible/rolesrulesdir:- ~/my-ansible-lint-rulesansible-lint -vvDEBUG Logging initialized to level 10DEBUG Options: Namespace(colored=True, config_file=None, display_relative_path=True, exclude_paths=['/tmp/~/.ansible/roles'], format='plain', listrules=False, listtags=False, parseable=False, parseable_severity=False, playbook=[], quiet=False, rulesdir=['/tmp/~/my-ansible-lint-rules'], skip_list=[], tags=[], use_default_rules=False, verbosity=2)DEBUG Loading rules from /tmp/~/my-ansible-lint-rulesINFO Discovering files to lint: git ls-files *.yaml *.ymlWARNING Failed to discover yaml files to lint using git: fatal: not a git repository (or any of the parent directories): .gitINFO Found roles: INFO Found playbooks:
Desired Behaviour
ansible-lint -vvDEBUG Logging initialized to level 10DEBUG Options: Namespace(colored=True, config_file=None, display_relative_path=True, exclude_paths=['/home/ksmets/.ansible/roles'], format='plain', listrules=False, listtags=False, parseable=False, parseable_severity=False, playbook=[], quiet=False, rulesdir=['/home/ksmets/my-ansible-lint-rules'], skip_list=[], tags=[], use_default_rules=False, verbosity=2)DEBUG Loading rules from /home/ksmets/my-ansible-lint-rulesINFO Discovering files to lint: git ls-files *.yaml *.ymlWARNING Failed to discover yaml files to lint using git: fatal: not a git repository (or any of the parent directories): .gitINFO Unknown file type: test-ansible/requirements.ymlINFO Found roles: INFO Found playbooks
The text was updated successfully, but these errors were encountered:
Summary
~ and environment variables are not expanded properly when specified as
exclude_paths
orrulesdir
both as cli arguments when using-r=...
or--exclude=~...
or when used in.ansible-lint
config file.Issue Type
Ansible and Ansible Lint details
OS / ENVIRONMENT
OS independent
STEPS TO REPRODUCE
Desired Behaviour
The text was updated successfully, but these errors were encountered: