--- - name: Stage AnythingLLM release tarball hosts: localhost gather_facts: false vars: anythingllm_repo_dir: "{{github_dir}}/anything-llm" archive_path: "{{rel_dir}}/anythingllm_{{anythingllm_rel}}.tar" tasks: - name: Ensure release directory exists file: path: "{{rel_dir}}" state: directory mode: '755' - name: Fetch all remote branches and tags ansible.builtin.command: git fetch --all args: chdir: "{{anythingllm_repo_dir}}" - name: Pull latest changes ansible.builtin.command: git pull args: chdir: "{{anythingllm_repo_dir}}" - name: Create AnythingLLM archive for specified release ansible.builtin.command: git archive -o "{{archive_path}}" "{{anythingllm_rel}}" args: chdir: "{{anythingllm_repo_dir}}"