From 339d22a2bd0e0e58938567c9c5d1ee15a1664546 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 21 Sep 2018 14:48:40 -0700 Subject: [PATCH] Improve stability of Docker integration tests. (#46005) --- test/integration/targets/docker_stack/tasks/test_stack.yml | 5 +++++ test/integration/targets/docker_swarm/tasks/test_swarm.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/test/integration/targets/docker_stack/tasks/test_stack.yml b/test/integration/targets/docker_stack/tasks/test_stack.yml index ad6540e4bac..4cd51352026 100644 --- a/test/integration/targets/docker_stack/tasks/test_stack.yml +++ b/test/integration/targets/docker_stack/tasks/test_stack.yml @@ -1,3 +1,8 @@ +- name: Make sure we're not already using Docker swarm + docker_swarm: + state: absent + force: true + - name: Create a Swarm cluster docker_swarm: state: present diff --git a/test/integration/targets/docker_swarm/tasks/test_swarm.yml b/test/integration/targets/docker_swarm/tasks/test_swarm.yml index 9e6bf808445..bdff0b6332c 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