blob: 88159102696bb1a7281ec6ea1c1c4c9f71f27e3c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
- name: Find the first unused loop device.
become: true
shell: losetup -f
register: result
- name: Set up a loop device.
become: true
command: "losetup {{ result.stdout }} {{ vyos_raw_img }}"
- name: Set vyos_target_drive.
set_fact:
vyos_target_drive: "{{ result.stdout }}"
|