From bc3537b218e2ad77621773d4be7d1f0f23302716 Mon Sep 17 00:00:00 2001 From: aminnairi <18418459+aminnairi@users.noreply.github.com> Date: Sat, 30 Nov 2024 19:23:21 +0100 Subject: [PATCH] now compiling and sending the output in one go instead of having to do it in two steps --- ansible/roles/markdown-table-align/tasks/main.yml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/ansible/roles/markdown-table-align/tasks/main.yml b/ansible/roles/markdown-table-align/tasks/main.yml index 0daaed8..5237597 100644 --- a/ansible/roles/markdown-table-align/tasks/main.yml +++ b/ansible/roles/markdown-table-align/tasks/main.yml @@ -13,18 +13,6 @@ - name: Compile the binary ansible.builtin.command: chdir: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align/ - cmd: deno compile index.ts + cmd: deno compile --allow-read --output $HOME/.local/bin/markdown-table-align index.ts when: git_clone_result.changed register: compile_the_binary - -- name: Copy the binary - ansible.builtin.copy: - src: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align/markdown-table-align - dest: /$HOME/.local/bin/ - when: compile_the_binary.changed - -- name: Remove the binary - ansible.builtin.file: - path: /$HOME/Document/git/github.com/aminnairi/markdown-table-align/markdown-table-align - state: absent - when: compile_the_binary.changed