Skip to content
Snippets Groups Projects

add option to stop docker containers without destroy

Closed Temur Maisuradze requested to merge tag-modification into tag-modification-merge
13 files
+ 98
21
Compare changes
  • Side-by-side
  • Inline
Files
13
@@ -15,11 +15,18 @@
@@ -15,11 +15,18 @@
tags:
tags:
- start-docker-containers
- start-docker-containers
- name: Disconnect cassandra containers from network and remove
- name: Stop cassandra containers
docker_container:
docker_container:
name: "{{ item }}"
name: "{{ item }}"
state: absent
state: stopped
with_items: "{{ groups['cassandra'] }}"
with_items: "{{ groups['cassandra'] }}"
tags:
tags:
- stop-docker-containers
- stop-docker-containers
 
- name: Destroy cassandra containers
 
docker_container:
 
name: "{{ item }}"
 
state: absent
 
with_items: "{{ groups['cassandra'] }}"
 
tags:
 
- destroy-docker-containers
Loading