Improve Platform deployment diagnostics
This commit is contained in:
@@ -55,6 +55,18 @@
|
|||||||
group: deploy
|
group: deploy
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
||||||
|
- name: Validate Platform Compose configuration
|
||||||
|
ansible.builtin.command:
|
||||||
|
cmd: docker compose -f /opt/platform/platform-compose.yml config
|
||||||
|
become: true
|
||||||
|
become_user: deploy
|
||||||
|
register: platform_compose_config
|
||||||
|
changed_when: false
|
||||||
|
|
||||||
|
- name: Show Platform Compose configuration result
|
||||||
|
ansible.builtin.debug:
|
||||||
|
var: platform_compose_config.stdout_lines
|
||||||
|
|
||||||
- name: Build and start Platform
|
- name: Build and start Platform
|
||||||
ansible.builtin.command:
|
ansible.builtin.command:
|
||||||
cmd: docker compose -f /opt/platform/platform-compose.yml up -d --build
|
cmd: docker compose -f /opt/platform/platform-compose.yml up -d --build
|
||||||
@@ -63,6 +75,10 @@
|
|||||||
register: platform_compose_result
|
register: platform_compose_result
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
|
||||||
- name: Show Platform deployment result
|
- name: Show Platform deployment output
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
var: platform_compose_result.stdout_lines
|
msg:
|
||||||
|
- "STDOUT:"
|
||||||
|
- "{{ platform_compose_result.stdout_lines }}"
|
||||||
|
- "STDERR:"
|
||||||
|
- "{{ platform_compose_result.stderr_lines }}"
|
||||||
Reference in New Issue
Block a user