always install k9s from git. install google-cloud-sdk in fedora

main
Andrew Coleman 2021-06-04 12:49:36 -04:00
parent 4c7228d596
commit 157f363be7
1 changed files with 11 additions and 10 deletions

View File

@ -64,18 +64,14 @@
warn: False warn: False
creates: "{{ ansible_env.HOME }}/.local/bin/kops" creates: "{{ ansible_env.HOME }}/.local/bin/kops"
- name: install k9s-HEAD freebsd - name: clone k9s git
when: ansible_facts['system']|lower == 'freebsd' ansible.builtin.git:
shell: cd ~/dev && git clone https://github.com/derailed/k9s.git k9s && cd k9s && gmake build && install -m 755 ./execs/k9s ~/.local/bin/k9s && cd .. && rm -rf k9s repo: 'https://github.com/derailed/k9s.git'
args: dest: "{{ ansible_env.HOME }}/dev/k9s"
warn: False
creates: "{{ ansible_env.HOME }}/.local/bin/k9s"
- name: install newest k9s linux - name: build k9s-HEAD
when: ansible_facts['system']|lower == 'linux' ansible.builtin.shell: "cd ~/dev/k9s && gmake build && install -m 755 ./execs/k9s ~/.local/bin/k9s"
shell: curl -Lo ~/.local/bin/k9s $(curl -L https://api.github.com/repos/derailed/k9s/releases/latest | jq -r '.assets[] | select(.name == "k9s_Linux_x86_64.tar.gz") | .browser_download_url') && chmod 755 ~/.local/bin/k9s
args: args:
warn: False
creates: "{{ ansible_env.HOME }}/.local/bin/k9s" creates: "{{ ansible_env.HOME }}/.local/bin/k9s"
- name: install stern-HEAD freebsd - name: install stern-HEAD freebsd
@ -113,3 +109,8 @@
dest: "{{ ansible_env.HOME }}/.bashrc.d/" dest: "{{ ansible_env.HOME }}/.bashrc.d/"
mode: "0640" mode: "0640"
- name: install google-cloud-sdk fedora
when: ansible_facts['system']|lower == 'fedora'
dnf:
name: google-cloud-sdk
state: present