mirror of
https://github.com/dev-sec/ansible-collection-hardening
synced 2024-11-10 09:14:18 +00:00
remove useless check
This commit is contained in:
parent
cf3bbb3dd4
commit
e01a478858
1 changed files with 1 additions and 9 deletions
|
@ -1,16 +1,8 @@
|
|||
---
|
||||
|
||||
- name: check if modprobe is already installed | os-10
|
||||
command: 'modprobe -V'
|
||||
register: modprobe_installed
|
||||
ignore_errors: True
|
||||
changed_when: False
|
||||
|
||||
- name: install modprobe to disable filesystems | os-10
|
||||
package:
|
||||
name: 'kmod'
|
||||
state: 'installed'
|
||||
when: modprobe_installed and modprobe_installed.rc != 0
|
||||
state: 'present'
|
||||
|
||||
- name: disable unused filesystems | os-10
|
||||
template:
|
||||
|
|
Loading…
Reference in a new issue