summaryrefslogtreecommitdiff
path: root/test/integration/targets/docker_swarm
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2018-09-21 14:48:40 -0700
committerGitHub <noreply@github.com>2018-09-21 14:48:40 -0700
commit339d22a2bd0e0e58938567c9c5d1ee15a1664546 (patch)
tree24ca9de4e8ae3bba8f38190aff7e9b4434179242 /test/integration/targets/docker_swarm
parentd603cd41feaef3d9beaa7f133ded59d6809b4916 (diff)
downloadansible-339d22a2bd0e0e58938567c9c5d1ee15a1664546.tar.gz
Improve stability of Docker integration tests. (#46005)
Diffstat (limited to 'test/integration/targets/docker_swarm')
-rw-r--r--test/integration/targets/docker_swarm/tasks/test_swarm.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/targets/docker_swarm/tasks/test_swarm.yml b/test/integration/targets/docker_swarm/tasks/test_swarm.yml
index 9e6bf80844..bdff0b6332 100644
--- a/test/integration/targets/docker_swarm/tasks/test_swarm.yml
+++ b/test/integration/targets/docker_swarm/tasks/test_swarm.yml
@@ -1,3 +1,8 @@
+- name: Make sure we're not already using Docker swarm
+ docker_swarm:
+ state: absent
+ force: true
+
- name: Test parameters with state=present
docker_swarm:
state: present