first commit

This commit is contained in:
2025-05-26 23:02:42 -04:00
commit 084e9ab432
14 changed files with 511 additions and 0 deletions

View File

@ -0,0 +1,28 @@
- name: Determine SeaweedFS asset name based on architecture and disk flag
set_fact:
seaweedfs_asset_name: "{{ asset_name_matrix[ansible_architecture][seaweed_variant] }}"
- name: Ensure download directory exists
file:
path: "{{ download_dir }}"
state: directory
mode: '0755'
- name: Download SeaweedFS latest release artifact
get_url:
url: "https://github.com/seaweedfs/seaweedfs/releases/latest/download/{{ seaweedfs_asset_name }}"
dest: "{{ download_dir }}/{{ seaweedfs_asset_name }}"
mode: '0644'
- name: Extract SeaweedFS archive
unarchive:
src: "{{ download_dir }}/{{ seaweedfs_asset_name }}"
dest: "{{ download_dir }}"
remote_src: yes
- name: Move 'weed' binary to /usr/local/bin
copy:
src: "{{ download_dir }}/weed"
dest: "{{ seaweed_binary_path }}"
mode: '0755'
remote_src: yes