From fac617ccd740f3f50d4d259c79de906f2c3bdb98 Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Sun, 9 Feb 2020 16:46:12 -0500 Subject: roles/docker/alpine: Use docker container module --- roles/docker/alpine.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/roles/docker/alpine.yml b/roles/docker/alpine.yml index 98160a0..5e9c29e 100644 --- a/roles/docker/alpine.yml +++ b/roles/docker/alpine.yml @@ -31,9 +31,7 @@ state: started enabled: yes - - name: Running hello world test - shell: docker run hello-world && touch /tmp/.docker-success - register: output - args: - creates: /tmp/.docker-success - - debug: var=output + - name: Running hello-world test + docker_container: + name: hello-world + image: hello-world -- cgit v1.2.3