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

fix(sudo): ensure sudo is installed #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
changed_when: false
check_mode: false

- name: "PRELIM | Gather package facts"
package_facts:
manager: auto

- name: "PRELIM | Run apt cache update"
apt:
update_cache: true
Expand Down
15 changes: 3 additions & 12 deletions tasks/section6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,6 @@
- patch
- rule_6.2.5

- name: "SCORED | 6.2.6 | PATCH | Ensure root PATH Integrity"
command: /bin/true
changed_when: false
when:
- debian9cis_rule_6_2_6
tags:
- level1
- scored
- patch
- rule_6.2.6
- notimplemented

- name: "SCORED | 6.2.6 | PATCH | Ensure root PATH Integrity"
shell: |
set -o pipefail
Expand All @@ -280,6 +268,7 @@
changed_when: false
check_mode: false
when:
- "'sudo' in ansible_facts.packages"
- debian9cis_rule_6_2_6
tags:
- level1
Expand All @@ -294,6 +283,8 @@
line: '\1"{{ fixsudo.stdout_lines[0] }}"'
backrefs: true
when:
- "'sudo' in ansible_facts.packages"
- debian9cis_rule_6_2_6
- fixsudo.stdout_lines[0]
tags:
- level1
Expand Down