Sunday, 15 May 2011

python - Spin up VM using Ansible without Vagrant -


I have a specific requirement, where I can use alone without vagrant in my host machine.

Two questions related to it:

  1. Is it possible to spin VM on a host machine using a libvirt / KVM account as a hypervisor? I know that the responsive is called a module which is capable of doing this. But I could not find any real example of using this. Appreciation If someone can point me through example YAML through which I can spin VM
  2. With Ansible, is it possible to run my playbook with Python code? If I'm not mistaken then there is a Python API supported by Ansabal. But it is possible to give YAML files as input to this API, which performs tasks from YAML.

  1. Of course - if you have SSH access.
  2. Yes, you can run responsive through your Python API or command line call. About passing YAML file - too - Yes.

No comments:

Post a Comment