Skip to content

knumskull/ovirt-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ovirt-tools - a collection of different tools for oVirt

ansible-playbook-ovirt - a containerbased wrapper for ansible ovirt.ovirt-collection

A tool for running playbooks based on ovirt.ovirt collection directly from a container image

prerequisites

build the appropriate container image

$ podman build -t sfroemer/ansible-ovirtsdk4-playbook:latest .

It might be necessary to login into container registry registry.redhat.io or using the registration-free registry.access.redhat.com. More information about Login to different registries can be obtained here.

Installation and configuration

  1. Copy the ansible-playbook-ovirt executable to a location which is propagated in $PATH

    $ cp ansible-playbook-ovirt ~/bin
    $ export PATH=~/bin:$PATH
    
  2. Tune variables inside of the script

    ANSIBLE_SDK_CONTAINER=sfroemer/ansible-ovirtsdk4-playbook
    SSH_PRIVATE_KEY=~/.ssh/id_rsa
    SSH_PUBLIC_KEY=~/.ssh/id_rsa.pub
    

run a playbook

The command ansible-playbook-ovirt can be used the same way like ansible-playbook

$ ansible-playbook-ovirt --version
ansible-playbook 2.9.14
  config file = None
  configured module search path = ['/ansible/library']
  ansible python module location = /usr/local/lib/python3.6/site-packages/ansible
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.6.8 (default, Aug 18 2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages