- name: Prompt for device to install on ansible.builtin.pause: prompt: "Input device to install dietpi on" register: dietpi_device_prompt when: dietpi_device is undefined - name: Set dietpi_device ansible.builtin.set_fact: dietpi_device: "{{ dietpi_device_prompt.user_input }}" when: dietpi_device is undefined - name: Check dietpi device ansible.builtin.command: cmd: test -b {{ dietpi_device }} changed_when: false