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