A
A
Artyom Belousov2019-07-01 18:58:55
Virtualization
Artyom Belousov, 2019-07-01 18:58:55

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

5 answer(s)
D
Dmitry, 2019-07-01
@flygrounder

Vagrant.
Well integrated with ansible. Google for vagrant provisioning

I
Ivan Shumov, 2019-07-01
@inoise

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

R
Ruslan Medvedev, 2019-07-06
@rus89

To test roles you can use https://molecule.readthedocs.io/en/stable/

S
Sanes, 2019-07-01
@Sanes

To configure a docker container, write a docker file.
Ansible for another.
More or less full-fledged OS in OpenVZ and LXD containers.

P
Puma Thailand, 2019-07-06
@opium

raise the virtual machine in the same virtual box

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question