Skip to content

Commit

Permalink
fix problems with efi and vfat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Gumprich committed Sep 2, 2018
1 parent 3da0d92 commit f4a79d7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ sysctl_config:
# example via package removal (e.g. wine, dosemu). Therefore, this value
# is reset to the secure default each time the sysctl values are loaded.
vm.mmap_min_addr: 65536

# These settings eliminate an entire class of security vulnerability:
# time-of-check-time-of-use cross-privilege attacks using guessable
# filenames (generally seen as "/tmp file race" vulnerabilities).
Expand All @@ -246,4 +246,4 @@ os_filesystem_whitelist: []

# Set to false to turn the role into a no-op. Useful when using
# the Ansible role dependency mechanism.
os_hardening_enabled: true
os_hardening_enabled: true
11 changes: 11 additions & 0 deletions tasks/modprobe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@
name: '{{modprobe_package}}'
state: 'present'

- name: check if efi is installed
stat:
path: "/tmp"
#path: "/sys/firmware/efi"
register: efi_installed

- name: remove vfat from fs-list if efi is used
set_fact:
os_unused_filesystems: "{{ os_unused_filesystems | difference('vfat') }}"
when: efi_installed.stat.isdir is defined and efi_installed.stat.isdir

- name: disable unused filesystems | os-10
template:
src: 'etc/modprobe.d/modprobe.j2'
Expand Down

0 comments on commit f4a79d7

Please sign in to comment.