- Drop `FREECAD_MCP_` prefix from env vars (use `FREECAD_*`) - Update freecad_mcp port from 22032 to 22061 - Document that FreeCAD bridge is required for tool calls - Replace kottos deployment with pallas deployment
85 lines
2.7 KiB
YAML
85 lines
2.7 KiB
YAML
---
|
|
- name: Stage Kottos and Pallas release tarballs
|
|
hosts: localhost
|
|
gather_facts: false
|
|
vars:
|
|
kottos_archive_path: "{{ rel_dir }}/kottos_{{ kottos_rel }}.tar"
|
|
kottos_repo_url: "ssh://git@git.helu.ca:22022/r/kottos.git"
|
|
kottos_repo_dir: "{{ repo_dir }}/kottos"
|
|
pallas_archive_path: "{{ rel_dir }}/pallas_{{ pallas_rel }}.tar"
|
|
pallas_repo_url: "ssh://git@git.helu.ca:22022/r/pallas.git"
|
|
pallas_repo_dir: "{{ repo_dir }}/pallas"
|
|
|
|
tasks:
|
|
- name: Ensure release directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ rel_dir }}"
|
|
state: directory
|
|
mode: '755'
|
|
|
|
- name: Ensure repo directory exists
|
|
ansible.builtin.file:
|
|
path: "{{ repo_dir }}"
|
|
state: directory
|
|
mode: '755'
|
|
|
|
# --- Kottos ------------------------------------------------------------
|
|
- name: Clone Kottos repository if not present
|
|
ansible.builtin.git:
|
|
repo: "{{ kottos_repo_url }}"
|
|
dest: "{{ kottos_repo_dir }}"
|
|
version: "{{ kottos_rel }}"
|
|
accept_hostkey: true
|
|
register: kottos_clone
|
|
ignore_errors: true
|
|
|
|
- name: Fetch all remote branches and tags (kottos)
|
|
ansible.builtin.command: git fetch --all
|
|
args:
|
|
chdir: "{{ kottos_repo_dir }}"
|
|
when: kottos_clone is not changed
|
|
changed_when: false
|
|
|
|
- name: Pull latest changes (kottos)
|
|
ansible.builtin.command: git pull
|
|
args:
|
|
chdir: "{{ kottos_repo_dir }}"
|
|
when: kottos_clone is not changed
|
|
changed_when: false
|
|
|
|
- name: Create Kottos archive for specified release
|
|
ansible.builtin.command: git archive -o "{{ kottos_archive_path }}" "{{ kottos_rel }}"
|
|
args:
|
|
chdir: "{{ kottos_repo_dir }}"
|
|
changed_when: true
|
|
|
|
# --- Pallas (kottos runtime dependency) --------------------------------
|
|
- name: Clone Pallas repository if not present
|
|
ansible.builtin.git:
|
|
repo: "{{ pallas_repo_url }}"
|
|
dest: "{{ pallas_repo_dir }}"
|
|
version: "{{ pallas_rel }}"
|
|
accept_hostkey: true
|
|
register: pallas_clone
|
|
ignore_errors: true
|
|
|
|
- name: Fetch all remote branches and tags (pallas)
|
|
ansible.builtin.command: git fetch --all
|
|
args:
|
|
chdir: "{{ pallas_repo_dir }}"
|
|
when: pallas_clone is not changed
|
|
changed_when: false
|
|
|
|
- name: Pull latest changes (pallas)
|
|
ansible.builtin.command: git pull
|
|
args:
|
|
chdir: "{{ pallas_repo_dir }}"
|
|
when: pallas_clone is not changed
|
|
changed_when: false
|
|
|
|
- name: Create Pallas archive for specified release
|
|
ansible.builtin.command: git archive -o "{{ pallas_archive_path }}" "{{ pallas_rel }}"
|
|
args:
|
|
chdir: "{{ pallas_repo_dir }}"
|
|
changed_when: true
|