Skip to content
New issue

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

Add check if to continue with ansible task #11299

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
ansible.builtin.set_fact:
world_writable_dirs: '{{ world_writable_dirs | union(item.stdout_lines) | list }}'
loop: "{{ result_found_dirs.results }}"
when: item is not skipped

- name: "{{{ rule_title }}} - Ensure root Ownership on Local World Writable Directories"
ansible.builtin.file:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
ansible.builtin.set_fact:
world_writable_dirs: '{{ world_writable_dirs | union(item.stdout_lines) | list }}'
loop: "{{ result_found_dirs.results }}"
when: result_found_dirs is not skipped and item is not skipped

- name: "{{{ rule_title }}} - Ensure Sticky Bit is Set on Local World Writable Directories"
ansible.builtin.file:
Expand Down
Loading