Update roles/demolamp/tasks/undeploy.yml

This commit is contained in:
2024-03-12 17:41:20 +08:00
parent 09b7f0af2d
commit a298f94410

View File

@@ -1,12 +1,8 @@
---
- block: - block:
- name: Stop a container - name: Undeploy the Redis-HA service
community.docker.docker_container: community.docker.docker_stack:
name: "{{ stackName }}"
state: stopped
- name: Remove container
community.docker.docker_container:
name: "{{ stackName }}" name: "{{ stackName }}"
state: absent state: absent
delegate_to: "{{ deploy_nodes.split(',') | first }}"
run_once: true