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 Remediation Role for RHEL 9 ACSC ISM Official Profile has a failure point.
The task Get all world-writable directories with no sticky bits set fails.
Get all world-writable directories with no sticky bits set
The tasks uses set -o pipefail issue which bypasses a non-zero return code if a shell exits with a non-zero return code.
set -o pipefail issue
However, we don't want this to fail the task.
I added a ignore_errors: true at the end of the task, to keep the playbook going.
ignore_errors: true
1.https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425#set--e--u--x--o-pipefail
The text was updated successfully, but these errors were encountered:
We can use the macro introduced by #10912 I am working on a PR to update the dir_perms_world_writable_sticky_bits rule.
dir_perms_world_writable_sticky_bits
Sorry, something went wrong.
marcusburghardt
Successfully merging a pull request may close this issue.
Share the context
The Ansible Remediation Role for RHEL 9 ACSC ISM Official Profile has a failure point.
Description of problem:
The task
Get all world-writable directories with no sticky bits set
fails.Proposed change:
The tasks uses
set -o pipefail issue
which bypasses a non-zero return code if a shell exits with a non-zero return code.However, we don't want this to fail the task.
I added a
ignore_errors: true
at the end of the task, to keep the playbook going.References:
1.https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425#set--e--u--x--o-pipefail
The text was updated successfully, but these errors were encountered: