- Update Gitea configuration (remove DEFAULT_ACTIONS_URL) - Fix deployment documentation - Update Ansible playbooks - Clean up deprecated files - Add new deployment scripts and templates
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
---
|
|
# Check Container Health Status
|
|
- name: Check nginx container logs
|
|
shell: |
|
|
docker logs nginx --tail 50 2>&1
|
|
args:
|
|
executable: /bin/bash
|
|
register: nginx_logs
|
|
failed_when: false
|
|
|
|
- name: Display nginx logs
|
|
debug:
|
|
msg: "{{ nginx_logs.stdout_lines }}"
|
|
|
|
- name: Test nginx health check manually
|
|
shell: |
|
|
docker exec nginx wget --spider -q http://localhost/health 2>&1 || echo "Health check failed"
|
|
args:
|
|
executable: /bin/bash
|
|
register: nginx_health_test
|
|
failed_when: false
|
|
|
|
- name: Display nginx health check result
|
|
debug:
|
|
msg: "{{ nginx_health_test.stdout }}"
|
|
|
|
- name: Check queue-worker container logs
|
|
shell: |
|
|
docker logs queue-worker --tail 50 2>&1
|
|
args:
|
|
executable: /bin/bash
|
|
register: queue_worker_logs
|
|
failed_when: false
|
|
|
|
- name: Display queue-worker logs
|
|
debug:
|
|
msg: "{{ queue_worker_logs.stdout_lines }}"
|
|
|
|
- name: Check scheduler container logs
|
|
shell: |
|
|
docker logs scheduler --tail 50 2>&1
|
|
args:
|
|
executable: /bin/bash
|
|
register: scheduler_logs
|
|
failed_when: false
|
|
|
|
- name: Display scheduler logs
|
|
debug:
|
|
msg: "{{ scheduler_logs.stdout_lines }}"
|
|
|
|
- name: Check container status
|
|
shell: |
|
|
cd {{ app_stack_path }}
|
|
docker compose ps
|
|
args:
|
|
executable: /bin/bash
|
|
register: container_status
|
|
failed_when: false
|
|
|
|
- name: Display container status
|
|
debug:
|
|
msg: "{{ container_status.stdout_lines }}"
|