ansible-collections/sbc/roles/dietpi_install/tasks/prepare_facts.yml

14 lines
443 B
YAML
Raw Normal View History

2023-07-10 11:28:44 +00:00
- name: Prompt for device to install on
ansible.builtin.pause:
prompt: "Input device to install dietpi on"
register: dietpi_device_prompt
2024-04-30 10:39:24 +00:00
when: dietpi_device is undefined
2023-07-10 11:28:44 +00:00
- name: Set dietpi_device
ansible.builtin.set_fact:
dietpi_device: "{{ dietpi_device_prompt.user_input }}"
2024-04-30 10:39:24 +00:00
when: dietpi_device is undefined
2023-07-10 11:28:44 +00:00
- name: Check dietpi device
ansible.builtin.command:
cmd: test -b {{ dietpi_device }}
changed_when: false