Skip to content

Commit

Permalink
Fix Linting
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Williams <[email protected]>
  • Loading branch information
MrSteve81 committed Sep 23, 2024
1 parent 5684a7f commit 47a41ad
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tasks/prelim.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,25 +246,25 @@
failed_when: false
ignore_errors: 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: "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: "Optional | PATCH | 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: "Optional | PATCH | 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 47a41ad

Please sign in to comment.