- Fix RedisCache driver to handle MGET failures gracefully with fallback - Add comprehensive discovery context comparison debug tools - Identify root cause: WEB context discovery missing 166 items vs CLI - WEB context missing RequestFactory class entirely (52 vs 69 commands) - Improved exception handling with detailed binding diagnostics
37 lines
714 B
YAML
37 lines
714 B
YAML
---
|
|
# Validation and Service Management for Nginx
|
|
|
|
- name: Test nginx configuration
|
|
command: nginx -t
|
|
register: nginx_test
|
|
changed_when: false
|
|
tags:
|
|
- nginx
|
|
- validation
|
|
|
|
- name: Display nginx test results
|
|
debug:
|
|
msg: "Nginx configuration test: {{ 'PASSED' if nginx_test.rc == 0 else 'FAILED' }}"
|
|
tags:
|
|
- nginx
|
|
- validation
|
|
|
|
- name: Start and enable nginx service
|
|
systemd:
|
|
name: nginx
|
|
state: started
|
|
enabled: true
|
|
daemon_reload: true
|
|
tags:
|
|
- nginx
|
|
- service
|
|
|
|
- name: Wait for nginx to be ready
|
|
wait_for:
|
|
port: 80
|
|
host: "{{ ansible_default_ipv4.address | default('127.0.0.1') }}"
|
|
delay: 2
|
|
timeout: 30
|
|
tags:
|
|
- nginx
|
|
- validation |