Skip to content

Commit

Permalink
Merge pull request #95 from awailly/modprobe.d-ubuntu-16.04
Browse files Browse the repository at this point in the history
Modprobe.d ubuntu 16.04
  • Loading branch information
awailly committed Apr 29, 2016
2 parents 3838a44 + 590e7ac commit 10c6128
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions tasks/section_07_level1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,30 +275,21 @@
- section7.4
- section7.4.5

- name: 7.5.0 Create the file "cis.conf" under modprobe.d if doesn't exist (Not Scored)
copy:
dest: /etc/modprobe.d/CIS.conf
content: ""
force: no
tags:
- section7
- section7.5

- name: 7.5.0 Check the presence of the file "cis.conf" under modprobe.d (Not Scored)
stat: >
path=/etc/modprobe.d/CIS.conf
- name: 7.5.0 Ensures /etc/modprobe.d/ exists (Not Scored)
file: >
path=/etc/modprobe.d
state=directory
register: cis_conf_file
tags:
- section7
- section7.5


- name: 7.5.1-4 Disable DCCP, SCTP, RDS, TIPC (Not Scored)
lineinfile: >
dest=/etc/modprobe.d/CIS.conf
line='install {{ item }} /bin/true'
state=present
when: cis_conf_file.stat.exists
create=True
with_items:
- dccp
- sctp
Expand Down

0 comments on commit 10c6128

Please sign in to comment.