docs: rewrite README with structured overview and quick start guide
Replaces the minimal project description with a comprehensive README including a component overview table, quick start instructions, common Ansible operations, and links to detailed documentation. Aligns with Red Panda Approval™ standards.
This commit is contained in:
32
ansible/mcpo/restart.yml
Normal file
32
ansible/mcpo/restart.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
- name: Restart MCPO service
|
||||
hosts: mcpo
|
||||
tasks:
|
||||
- name: Restart mcpo service
|
||||
become: true
|
||||
ansible.builtin.systemd:
|
||||
name: mcpo
|
||||
state: restarted
|
||||
register: restart_result
|
||||
|
||||
- name: Wait for MCPO to be ready
|
||||
ansible.builtin.wait_for:
|
||||
port: "{{mcpo_port}}"
|
||||
host: localhost
|
||||
delay: 2
|
||||
timeout: 30
|
||||
state: started
|
||||
|
||||
- name: Check if MCPO service is responding
|
||||
ansible.builtin.uri:
|
||||
url: http://localhost:{{mcpo_port}}/docs
|
||||
method: GET
|
||||
status_code: 200
|
||||
register: health_check
|
||||
retries: 5
|
||||
delay: 3
|
||||
until: health_check.status == 200
|
||||
|
||||
- name: Report MCPO health status
|
||||
ansible.builtin.debug:
|
||||
msg: "✔ MCPO service successfully restarted and is healthy"
|
||||
Reference in New Issue
Block a user