From 2405b072a9779efd68947405bf04a04e66b69325 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Wed, 8 Sep 2021 00:06:34 -0400 Subject: [PATCH] better ansible args and change to release asset structure --- cloud-tools.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cloud-tools.yml b/cloud-tools.yml index 4bc1f74..9644b29 100644 --- a/cloud-tools.yml +++ b/cloud-tools.yml @@ -70,8 +70,9 @@ dest: "{{ ansible_env.HOME }}/dev/k9s" - name: build k9s-HEAD - ansible.builtin.shell: "cd ~/dev/k9s && gmake build && install -m 755 ./execs/k9s ~/.local/bin/k9s" + ansible.builtin.shell: "gmake build && install -m 755 ./execs/k9s ~/.local/bin/k9s" args: + chdir: "{{ ansible_env.HOME }}/dev/k9s" creates: "{{ ansible_env.HOME }}/.local/bin/k9s" - name: install stern-HEAD freebsd @@ -82,7 +83,7 @@ - name: install newest stern linux when: ansible_facts['system']|lower == 'linux' - shell: curl -Lo ~/.local/bin/stern $(curl -L https://api.github.com/repos/stern/stern/releases/latest | jq -r '.assets[] | select(.name == "stern_linux_amd64") | .browser_download_url') && chmod 755 ~/.local/bin/stern + shell: curl -Lo ~/.local/bin/stern $(curl -L https://api.github.com/repos/stern/stern/releases/latest | jq -r '.assets[] | select(.name | match("stern_.+_linux_amd64.tar.gz";"i")) | .browser_download_url') && chmod 755 ~/.local/bin/stern args: warn: False creates: "{{ ansible_env.HOME }}/.local/bin/stern"