We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8e8a01 commit 18af02fCopy full SHA for 18af02f
etc/kayobe/ansible/deployment/get-nvme-drives.yml
@@ -17,12 +17,11 @@
17
- name: Retrieve NVMe device information via smartctl
18
ansible.builtin.command: "smartctl -i -j {{ item }}"
19
register: smartctl_info
20
- loop: "{{ nvme_devices }}"
+ loop: "{{ nvme_devices | default([], true) }}"
21
loop_control:
22
label: "{{ item }}"
23
changed_when: false
24
become: true
25
- when: nvme_devices | length > 0
26
27
- name: Parse NVMe device model names
28
ansible.builtin.set_fact:
0 commit comments