I have created a testing playbook which mimics my production playbook but start up docker containers first. If I want to test that I can rerun the playbook to check the state, the testing playbook will recreate the docker containers from fresh and thus it's not a rerun anymore.
Is there a way (like saying state: present) to only create the docker containers when they aren't there?
I have created a testing playbook which mimics my production playbook but start up docker containers first. If I want to test that I can rerun the playbook to check the state, the testing playbook will recreate the docker containers from fresh and thus it's not a rerun anymore.
Is there a way (like saying
state: present
) to only create the docker containers when they aren't there?