fix(docker): fix docker role handlers

This commit is contained in:
2024-12-28 18:34:46 +01:00
parent e95fa95336
commit 639e184f2d

View File

@@ -1,18 +1,17 @@
--- ---
- name: test docker setup - name: run hello-world container
block: become: true
- name: run hello-world container listen: docker_run_test
become: true notify: docker_rm_test
register: docker_test community.docker.docker_container:
community.docker.docker_container: state: started
state: started name: hello-world
name: hello-world image: hello-world
image: hello-world
- name: remove hello-world container - name: remove hello-world container
become: true become: true
when: docker_test is changed listen: docker_rm_test
community.docker.docker_container: community.docker.docker_container:
state: absent state: absent
name: hello-world name: hello-world
image: hello-world image: hello-world