Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #6 from UdelaRInterior/vmid-parameter
Browse files Browse the repository at this point in the history
vmid parameter added 
newid parameter added
  • Loading branch information
Dkmarce authored Jan 8, 2020
2 parents c7b8b81 + 8a17070 commit 3bc20b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ clone_vm: DebianBusterTemplate # The VM to clone
clone_storage: local-lvm # Target storage for full clone.
clone_format: raw # Target drive's backing file's data format. Used only with clone
clone_target: "{{ node }}" # Target node
clone_vmid: 1 # VM source id
clone_newid: 9 # Clone id
# Choices: cloop - cow - qcow - qcow2 (default) - qed - raw - vmdk


Expand Down
2 changes: 2 additions & 0 deletions tasks/clone_kvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@
format: "{{ clone_format | default (omit) }}" # Target drive's backing file's data format. Used only with clone
timeout: 500 # Cloning can take a while
target: "{{ clone_target }}" # Target node
vmid: "{{ clone_vmid | default (omit) }}" # VM source id
newid: "{{ clone_newid | default (omit) }}" # Clone id
register: virtualm
delegate_to: "{{ api_host }}"

0 comments on commit 3bc20b4

Please sign in to comment.