Skip to content

Commit

Permalink
Fix Name Lines In Prelim
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Williams <[email protected]>
  • Loading branch information
MrSteve81 committed Sep 20, 2024
1 parent da0b1c9 commit 5684a7f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,32 +239,32 @@

- name: "Optional | PATCH | Check for UAS running for usb-storage"
block:
- name: "PRELIM | AUDIT | Check if UAS kernel module is running"
- name: "Optional | AUDIT | Check if UAS kernel module is running"
ansible.builtin.shell: "lsmod | grep uas"
register: discovered_uas_status
changed_when: false
failed_when: false
ignore_errors: true
block:
- name: "1.1.10 | PATCH | Disable UAS Storage | Set UAS config"
ansible.builtin.lineinfile:
path: /etc/modprobe.d/uas.conf
regexp: '^install uas'
line: 'install uas /bin/true'
create: true
- block:
- name: "Optional | PATCH | Set UAS config"
ansible.builtin.lineinfile:
path: /etc/modprobe.d/uas.conf
regexp: '^install uas'
line: 'install uas /bin/true'
create: true

- name: "1.1.10 | PATCH | Disable USB Storage | Blacklist usb-storage"
ansible.builtin.lineinfile:
path: /etc/modprobe.d/blacklist.conf
line: 'blacklist uas'
insertafter: EOF
- name: "Optional | PATCH | Blacklist usb-storage"
ansible.builtin.lineinfile:
path: /etc/modprobe.d/blacklist.conf
line: 'blacklist uas'
insertafter: EOF

- name: "1.1.10 | PATCH | Disable USB Storage | Remove usb-storage module"
community.general.modprobe:
name: uas
state: absent
when:
- ansible_connection != 'docker'
- name: "Optional | PATCH | Remove usb-storage module"
community.general.modprobe:
name: uas
state: absent
when:
- ansible_connection != 'docker'
notify: Update_Initramfs
when:
- discovered_uas_status.rc == 0
Expand Down

0 comments on commit 5684a7f

Please sign in to comment.