!fix(docker): update docker role

* update package names
* remove dist install option
* fix handlers for testing the setup
This commit is contained in:
2024-12-28 10:01:34 +01:00
parent d5b99433d8
commit f5aa61b3c0
6 changed files with 85 additions and 85 deletions

View File

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