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

10 lines
280 B
YAML

- name: Burn img to device
ansible.builtin.command:
cmd: dd if="{{ dietpi.img}}.img" of="{{ dietpi_device }}" bs=4M status=progress
chdir: "{{ build_dir.path }}"
become: true
register: cmd_result
- name: Debug dd result
ansible.builtin.debug:
var: cmd_result