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

10 lines
350 B
YAML

- name: Burn img to device
ansible.builtin.command:
cmd: dd if="{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img') | path_join }}" 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