This commit is contained in:
2025-12-25 10:22:57 +01:00
parent 6da153fc60
commit d2922fc004
4 changed files with 119 additions and 2 deletions

15
testcmd.yml Normal file
View File

@@ -0,0 +1,15 @@
---
- name: Spielwiese
hosts: dockerserver
tasks:
- name: Container present
docker_container:
name: ansible-mysql-1
state: present
image: mysql:8.0
command: sleep infinity
- name: Stop a container
docker_container:
name: ansible-mysql-1
state: stopped