Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions etc/kayobe/ansible/deployment/get-nvme-drives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@
- name: Retrieve NVMe device information via smartctl
ansible.builtin.command: "smartctl -i -j {{ item }}"
register: smartctl_info
loop: "{{ nvme_devices }}"
loop: "{{ nvme_devices | default([], true) }}"
loop_control:
label: "{{ item }}"
changed_when: false
become: true
when: nvme_devices | length > 0

- name: Parse NVMe device model names
ansible.builtin.set_fact:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
fixes:
- |
Fixed an issue with the get-nvme-drives playbook where it would fail if no NVMe drives were present.
Loading