Skip to content

Commit 78ec48c

Browse files
author
mafyuh
committedDec 20, 2024
Update ansible/playbooks/deploy-docker.yml
1 parent 84f1a15 commit 78ec48c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed
 

‎ansible/playbooks/deploy-docker.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,11 @@
1919
project_src: "{{ repo_path }}"
2020
state: present
2121
remove_orphans: true
22-
register: docker_compose_output
2322

24-
- name: Display container states
25-
debug:
26-
msg: |
27-
Container {{ item.Names[0] }}
28-
- State: {{ item.State }}
29-
- Status: {{ item.Status }}
30-
- Ports: {{ item.Ports }}
31-
- Networks: {{ item.Networks | join(', ') }}
32-
with_items: "{{ docker_compose_output.containers }}"
23+
- name: Run Docker Command
24+
command: docker compose ps
25+
register: docker_output
3326

27+
- name: Display Docker Output
28+
debug:
29+
var: docker_output.stdout_lines

0 commit comments

Comments
 (0)
Please sign in to comment.