diff --git a/tasks/prelim.yml b/tasks/prelim.yml index 4347f71..37c9a1f 100644 --- a/tasks/prelim.yml +++ b/tasks/prelim.yml @@ -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