From 78ec48cfe6c6a16aa69a0f1cfcd86f7834536a1e Mon Sep 17 00:00:00 2001 From: mafyuh Date: Fri, 20 Dec 2024 01:29:16 -0500 Subject: [PATCH] Update ansible/playbooks/deploy-docker.yml --- ansible/playbooks/deploy-docker.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/ansible/playbooks/deploy-docker.yml b/ansible/playbooks/deploy-docker.yml index cd05657..e4af130 100644 --- a/ansible/playbooks/deploy-docker.yml +++ b/ansible/playbooks/deploy-docker.yml @@ -19,15 +19,11 @@ project_src: "{{ repo_path }}" state: present remove_orphans: true - register: docker_compose_output - - name: Display container states - debug: - msg: | - Container {{ item.Names[0] }} - - State: {{ item.State }} - - Status: {{ item.Status }} - - Ports: {{ item.Ports }} - - Networks: {{ item.Networks | join(', ') }} - with_items: "{{ docker_compose_output.containers }}" + - name: Run Docker Command + command: docker compose ps + register: docker_output + - name: Display Docker Output + debug: + var: docker_output.stdout_lines \ No newline at end of file