24 lines
725 B
YAML

---
- name: Verify OpenApply service reaches active state
ansible.builtin.command:
cmd: "systemctl is-active {{ openapply_app_service_name }}"
register: openapply_service_state
changed_when: false
retries: 20
delay: 3
until: openapply_service_state.stdout | trim == 'active'
- name: Wait for OpenApply port to become reachable
ansible.builtin.wait_for:
host: 127.0.0.1
port: "{{ openapply_app_service_port }}"
timeout: 120
- name: Validate HTTP response from OpenApply endpoint
ansible.builtin.uri:
url: "http://127.0.0.1:{{ openapply_app_service_port }}/"
method: GET
status_code: "{{ openapply_app_verify_status_codes }}"
register: openapply_http_probe
changed_when: false