karmab.kcli.kvirt_vm (1.0.0) — module

Handles libvirt vms using kcli

| "added in version" 0.2 of karmab.kcli"

Authors: Karim Boumedhel, @karmab

Install collection

Install with ansible-galaxy collection install karmab.kcli:==1.0.0


Add to requirements.yml

  collections:
    - name: karmab.kcli
      version: 1.0.0

Description

Longer description of the module

You might include instructions


Requirements

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a vm from profile centos8stream
  kcli_vm:
    name: prout
    profile: centos8stream
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Create a vm from image centos8stream
  kcli_vm:
    name: prout
    image: centos8stream
    parameters:
     memory: 4096
     numcpus: 4
     cmds:
     - echo Welcome here > /etc/motd
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Delete that vm
  kcli_vm:
    name: prout
    state: absent