Answer the question
In order to leave comments, you need to log in
How do you test PlayBook Ansible?
Now I am writing a PlayBook for deploying servers. I would like to test it on a "clean" OS in order to bring the environment as close as possible to the newly created VDS. So here's how to do it with the least effort? Immediately comes the idea of a Docker container. But on Windows (and I also have home), Docker is more of a headache than a handy tool. So, how do you advise setting up an environment for testing?
Answer the question
In order to leave comments, you need to log in
Vagrant.
Well integrated with ansible. Google for vagrant provisioning
Do not confuse containers and ansible) This is a different approach and you don’t need to interfere with them at all. containers for containers, ansible/salt and others like them for virtual machines. Install hyper-v / vmware / ... yes, whatever and play) I have an environment in the cloud for this, which I run for the duration of the experiment
To test roles you can use https://molecule.readthedocs.io/en/stable/
To configure a docker container, write a docker file.
Ansible for another.
More or less full-fledged OS in OpenVZ and LXD containers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question