blob: add5d6c45229c18133cb9d28eff2bb898ae0ee9b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
---
- name: Prepare
hosts: localhost
gather_facts: false
tasks:
- name: "Create virtual disk image"
become: true
community.general.filesize:
path: "/opt/vdd.img"
size: 12G
mode: "0755"
- name: "Create test_device (loop block device)"
become: true
ansible.builtin.command:
cmd: "losetup --show -Pf /opt/vdd.img"
register: loop_device
changed_when: true
- name: "Show test device"
ansible.builtin.debug:
msg: "Test device: {{ loop_device.stdout }}"
|