Skip to content

Commit

Permalink
added 2.1.1 and 2.1.2
Browse files Browse the repository at this point in the history
Signed-off-by: George Nalen <[email protected]>
  • Loading branch information
georgenalen committed Aug 24, 2020
1 parent dc97350 commit 44d5f18
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 6 deletions.
27 changes: 27 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,33 @@ ubtu18cis_rule_1_8_1_6: true
ubtu18cis_rule_1_8_2: true
ubtu18cis_rule_1_9: true

# Section 2 Fixes
# Section 2 is Services (inetd, special purpose, and service clients)
ubtu18cis_rule_2_1_1: true
ubtu18cis_rule_2_1_2: true
ubtu18cis_rule_2_2_1: true
ubtu18cis_rule_2_2_2: true
ubtu18cis_rule_2_2_3: true
ubtu18cis_rule_2_2_4: true
ubtu18cis_rule_2_2_5: true
ubtu18cis_rule_2_2_6: true
ubtu18cis_rule_2_2_7: true
ubtu18cis_rule_2_2_8: true
ubtu18cis_rule_2_2_9: true
ubtu18cis_rule_2_2_10: true
ubtu18cis_rule_2_2_11: true
ubtu18cis_rule_2_2_12: true
ubtu18cis_rule_2_2_13: true
ubtu18cis_rule_2_2_14: true
ubtu18cis_rule_2_2_15: true
ubtu18cis_rule_2_2_16: true
ubtu18cis_rule_2_2_17: true
ubtu18cis_rule_2_3_1: true
ubtu18cis_rule_2_3_2: true
ubtu18cis_rule_2_3_3: true
ubtu18cis_rule_2_3_4: true
ubtu18cis_rule_2_3_5: true

# Service configuration variables, set to true to keep service
ubtu18cis_allow_autofs: false
ubtu18cis_allow_usb_storage: false
Expand Down
10 changes: 5 additions & 5 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
tags:
- section1

# - name: Include section 2 patches
# import_tasks: section2.yml
# when: ubtu18cis_section2_patch | bool
# tags:
# - section2
- name: Include section 2 patches
import_tasks: section2.yml
when: ubtu18cis_section2_patch | bool
tags:
- section2

# - name: Include section 3 patches
# import_tasks: section3.yml
Expand Down
16 changes: 15 additions & 1 deletion tasks/section1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -993,4 +993,18 @@
- scored
- patch
- rule_1.8.2
- banner
- banner

- name: "NOTSCORED | 1.9 | PATCH | Ensure updates, patches, and additional security software are installed"
apt:
name: "*"
state: latest
when:
- ubtu18cis_rule_1_9
tags:
- level1-server
- level1-workstation
- notscored
- patch
- rule_1.9
- patching
28 changes: 28 additions & 0 deletions tasks/section2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
- name: "SCORED | 2.1.1 | PATCH | Ensure xinetd is not installed"
apt:
name: xinetd
state: absent
when:
- ubtu18cis_rule_2_1_1
tags:
- level1-server
- level1-workstation
- scored
- patch
- rule_2.1.1
- xinetd

- name: "SCORED | 2.1.2 | PATCH | Ensure openbsd-inetd is not installed"
apt:
name: openbsd-inetd
state: absent
when:
- ubtu18cis_rule_2_1_2
tags:
- level1-server
- level1-workstation
- scored
- patch
- rule_2.1.2
- openbsd-inetd

0 comments on commit 44d5f18

Please sign in to comment.