- 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