Initial snapshot before transformerlab recovery
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
- name: Download Kiln Linux archive
|
||||
get_url:
|
||||
url: "https://github.com/Kiln-AI/Kiln/releases/download/{{ courseware_kiln_release_tag }}/Kiln.Linux.x64.zip"
|
||||
dest: "{{ courseware_downloads_dir }}/Kiln.Linux.x64.zip"
|
||||
mode: "0644"
|
||||
|
||||
- name: Create Kiln Linux directory
|
||||
file:
|
||||
path: "{{ courseware_apps_dir }}/kiln"
|
||||
state: directory
|
||||
mode: "0755"
|
||||
|
||||
- name: Unpack Kiln Linux binary
|
||||
unarchive:
|
||||
src: "{{ courseware_downloads_dir }}/Kiln.Linux.x64.zip"
|
||||
dest: "{{ courseware_apps_dir }}/kiln"
|
||||
remote_src: true
|
||||
creates: "{{ courseware_apps_dir }}/kiln/Kiln"
|
||||
|
||||
- name: Ensure Kiln Linux binary is executable
|
||||
file:
|
||||
path: "{{ courseware_apps_dir }}/kiln/Kiln"
|
||||
mode: "0755"
|
||||
state: file
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
- name: Download Kiln macOS disk image
|
||||
get_url:
|
||||
url: "https://github.com/Kiln-AI/Kiln/releases/download/{{ courseware_kiln_release_tag }}/Kiln.MacOS.AppleSilicon.M-Processor.dmg"
|
||||
dest: "{{ courseware_downloads_dir }}/Kiln.MacOS.AppleSilicon.M-Processor.dmg"
|
||||
mode: "0644"
|
||||
|
||||
- name: Install Kiln.app into project state
|
||||
shell: |
|
||||
set -euo pipefail
|
||||
mount_point=$(mktemp -d /tmp/kiln.XXXXXX)
|
||||
hdiutil attach "{{ courseware_downloads_dir }}/Kiln.MacOS.AppleSilicon.M-Processor.dmg" -mountpoint "$mount_point" -nobrowse -quiet
|
||||
app_path=$(find "$mount_point" -maxdepth 1 -name '*.app' | head -n 1)
|
||||
rm -rf "{{ courseware_apps_dir }}/Kiln.app"
|
||||
cp -R "$app_path" "{{ courseware_apps_dir }}/Kiln.app"
|
||||
hdiutil detach "$mount_point" -quiet
|
||||
rmdir "$mount_point"
|
||||
args:
|
||||
executable: /bin/bash
|
||||
creates: "{{ courseware_apps_dir }}/Kiln.app"
|
||||
@@ -0,0 +1,8 @@
|
||||
- name: Install Kiln on Linux
|
||||
include_tasks: linux.yml
|
||||
when: ansible_system == "Linux"
|
||||
|
||||
- name: Install Kiln on macOS
|
||||
include_tasks: macos.yml
|
||||
when: ansible_system == "Darwin"
|
||||
|
||||
Reference in New Issue
Block a user