add playbook to remove docker swarm stack
This commit is contained in:
parent
5bb39c4491
commit
b40c6ca579
1 changed files with 9 additions and 0 deletions
9
ansible/playbooks/remove_stack.yml
Normal file
9
ansible/playbooks/remove_stack.yml
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
- name: Remove a Docker swarm stack
|
||||||
|
hosts: manager
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Remove the stack
|
||||||
|
docker_stack:
|
||||||
|
name: "{{ stack }}"
|
||||||
|
state: absent
|
Reference in a new issue