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

11 lines
350 B
YAML
Raw Normal View History

2023-07-10 11:28:44 +00:00
- name: Burn img to device
ansible.builtin.command:
2024-04-30 10:43:56 +00:00
cmd: dd if="{{ (lookup('ansible.builtin.env', 'XDG_RUNTIME_DIR'), dietpi.img + '.img') | path_join }}" of="{{ dietpi_device }}" bs=4M status=progress
2023-07-10 11:28:44 +00:00
chdir: "{{ build_dir.path }}"
become: true
register: cmd_result
- name: Debug dd result
ansible.builtin.debug:
var: cmd_result