14 lines
345 B
YAML
14 lines
345 B
YAML
---
|
|
- name: Create a copy of an existing qcow2 image
|
|
hosts: localhost
|
|
gather_facts: no
|
|
tasks:
|
|
- name: Create a new qcow2 image from an existing one
|
|
libvirt_volume:
|
|
name: new-image.qcow2
|
|
source: /home/eric/Downloads/debian-12-nocloud-amd64.qcow2
|
|
pool: default
|
|
format: qcow2
|
|
state: present
|
|
|