Skip to content

Commit

Permalink
Start of ansible check option support for section 2 and 6
Browse files Browse the repository at this point in the history
  • Loading branch information
awailly committed Jun 11, 2015
1 parent 5d99314 commit 170edd7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
23 changes: 7 additions & 16 deletions tasks/section_02_level2.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,11 @@
---

- name: 2.0.1 Check the presence of the file "cis.conf" under modprobe.d
stat: >
path=/etc/modprobe.d/CIS.conf
register: cis_conf_file
tags:
- section2
- section2.18

- name: 2.0.2 Create the file "cis.conf" under modprobe.d if doesn't exist
file: >
dest=/etc/modprobe.d/CIS.conf state=touch
when: not cis_conf_file.stat.exists
tags:
- section2
- section2.18

- name: 2.18 Disable Mounting of cramfs Filesystems (Not Scored)
lineinfile: >
dest=/etc/modprobe.d/CIS.conf
line='install cramfs /bin/true'
state=present
create=yes
tags:
- section2
- section2.18
Expand All @@ -30,6 +15,7 @@
dest=/etc/modprobe.d/CIS.conf
line='install freevxfs /bin/true'
state=present
create=yes
tags:
- section2
- section2.19
Expand All @@ -39,6 +25,7 @@
dest=/etc/modprobe.d/CIS.conf
line='install jffs2 /bin/true'
state=present
create=yes
tags:
- section2
- section2.20
Expand All @@ -48,6 +35,7 @@
dest=/etc/modprobe.d/CIS.conf
line='install hfs /bin/true'
state=present
create=yes
tags:
- section2
- section2.21
Expand All @@ -57,6 +45,7 @@
dest=/etc/modprobe.d/CIS.conf
line='install hfsplus /bin/true'
state=present
create=yes
tags:
- section2
- section2.22
Expand All @@ -66,6 +55,7 @@
dest=/etc/modprobe.d/CIS.conf
line='install squashfs /bin/true'
state=present
create=yes
tags:
- section2
- section2.23
Expand All @@ -75,6 +65,7 @@
dest=/etc/modprobe.d/CIS.conf
line='install udf /bin/true'
state=present
create=yes
tags:
- section2
- section2.24
2 changes: 1 addition & 1 deletion tasks/section_06_level1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
service: >
name=nfs-kernel-server
enabled=no
when: nfs_present.rc == 0
when: nfs_present is defined and nfs_present.rc == 0
register: nfs_service_result
failed_when: "nfs_service_result|failed and 'service not found' not in nfs_service_result.msg"
tags:
Expand Down

0 comments on commit 170edd7

Please sign in to comment.