|
@@ -9,10 +9,6 @@
|
|
- name: Gather facts now that Python is installed
|
|
- name: Gather facts now that Python is installed
|
|
ansible.builtin.setup:
|
|
ansible.builtin.setup:
|
|
|
|
|
|
-- name: Set Devices
|
|
|
|
- ansible.builtin.set_fact:
|
|
|
|
- devices: "{{ ansible_devices | dict2items }}"
|
|
|
|
-
|
|
|
|
- name: Find correct device
|
|
- name: Find correct device
|
|
ansible.builtin.set_fact:
|
|
ansible.builtin.set_fact:
|
|
device: "{{ item }}"
|
|
device: "{{ item }}"
|
|
@@ -21,7 +17,7 @@
|
|
- item.value.host != ""
|
|
- item.value.host != ""
|
|
- item.value.removable|int == 0
|
|
- item.value.removable|int == 0
|
|
with_items:
|
|
with_items:
|
|
- - "{{ devices }}"
|
|
|
|
|
|
+ - "{{ ansible_devices | dict2items }}"
|
|
loop_control:
|
|
loop_control:
|
|
label: "{{ item.key }}"
|
|
label: "{{ item.key }}"
|
|
|
|
|