Coder Social home page Coder Social logo

goneri / ansible-collection-virt-lightning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from virt-lightning/ansible-collection-virt-lightning

0.0 2.0 0.0 37 KB

Ansible Collection that provides an inventory and module plugin

Python 100.00%

ansible-collection-virt-lightning's Introduction

Virt-Lightning's Ansible collection

Purpose

This module extends Ansible feature to provide two additional plugins. These plugins allow you to consume the virt-lightning inventory and manage new virtual machine:

Example

---
- hosts: localhost
  collections:
    - virt_lightning.virt_lightning
  tasks:
    - name: Create the Debian 10 VM
      virt_lightning:
        distro: debian-10
        name: myvm
        state: present

    - name: Refresh inventory to ensure new instaces exist in inventory
      meta: refresh_inventory

    - debug: var=hostvars.myvm
    - name:
      command: uname -a
      delegate_to: myvm

    - name: Destroy the VM
      virt_lightning:
        name: myvm
        state: absent

Requirements

  • Libvirt
  • Linux

VirtLightning should already be installed in your virtualenv, the following command should not raise any error: python -m virt_lightning.virt_lightning

If it's not the case, just follow the installation procedure here: https://virt-lightning.github.io/virt-lightning/

Installation

ansible-galaxy collection install -p ~/.ansible/collections virt_lightning.virt_lightning

You can test your installation with the two samples playbooks.

ansible-collection-virt-lightning's People

Contributors

goneri avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.