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
The ansible-lint[risky-shell-pipe] rule misinterprets pipe in comment when using Multiline Block Scalars ( | or > )
> ansible-lint --version ansible-lint 24.7.0 using ansible-core:2.17.1 ansible-compat:24.7.0 ruamel-yaml:0.18.6 ruamel-yaml-clib:0.2.8
Create the below test.yml and run it through the linter
--- - name: "Write crontab header for {{ postgresql_svc_user }}" become: true ansible.builtin.shell: | cat <<EOF >> crontab_temp.txt ## | +---------------- hour (0 - 23) changed_when: true ...
Expected behavior is the pipes in comments are interpreted correctly and not flagged for risky-shell-pipe rule.
The text was updated successfully, but these errors were encountered:
+100 for using the devtools container, ty for that!
Sorry, something went wrong.
ssbarnea
No branches or pull requests
Summary
The ansible-lint[risky-shell-pipe] rule misinterprets pipe in comment when using Multiline Block Scalars ( | or > )
Issue Type
OS / ENVIRONMENT
STEPS TO REPRODUCE
Create the below test.yml and run it through the linter
Desired Behavior
Expected behavior is the pipes in comments are interpreted correctly and not flagged for risky-shell-pipe rule.
Actual Behavior
The text was updated successfully, but these errors were encountered: