fix(docker): fix docker role handlers
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user