Обновить ansible/npm-setup.yml
This commit is contained in:
+2
-10
@@ -155,19 +155,13 @@
|
||||
when: docker_compose_result is failed
|
||||
|
||||
- name: Check if containers are running
|
||||
shell: docker ps --filter "name=app" --format "table {{.Names}}\t{{.Status}}"
|
||||
shell: docker ps --filter "name=app"
|
||||
register: container_status
|
||||
changed_when: false
|
||||
|
||||
- name: Display container status
|
||||
debug:
|
||||
msg: "{{ container_status.stdout_lines }}"
|
||||
|
||||
- name: Get container logs if needed
|
||||
shell: docker logs npm_app_1 --tail 20
|
||||
register: container_logs
|
||||
changed_when: false
|
||||
ignore_errors: yes
|
||||
msg: "Container status:\n{{ container_status.stdout }}"
|
||||
|
||||
- name: Display access information
|
||||
debug:
|
||||
@@ -186,6 +180,4 @@
|
||||
Default Admin Credentials:
|
||||
- Email: admin@example.com
|
||||
- Password: changeme
|
||||
|
||||
To check logs: docker logs npm_app_1
|
||||
========================================
|
||||
Reference in New Issue
Block a user