RHEL9-CIS/tasks/section_1/cis_1.1.x.yml
Mark Bolwell 2634fabd41
v1.0.0 updates
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2023-01-09 16:29:47 +00:00

28 lines
765 B
YAML

---
- name: "1.1.9 | PATCH | Disable USB Storage"
block:
- name: "1.1.9 | PATCH | Disable USB Storage | Edit modprobe config"
ansible.builtin.lineinfile:
path: /etc/modprobe.d/CIS.conf
regexp: "^(#)?install usb-storage(\\s|$)"
line: "install usb-storage /bin/true"
create: true
owner: root
group: root
mode: 0600
- name: "1.1.9 | PATCH | Disable USB Storage | Edit modprobe config"
ansible.builtin.modprobe:
name: usb-storage
state: absent
when:
- rhel9cis_rule_1_1_9
tags:
- level1-server
- level2-workstation
- automated
- patch
- mounts
- removable_storage
- rule_1.1.9