always install k9s from git. install google-cloud-sdk in fedora
parent
4c7228d596
commit
157f363be7
|
@ -64,18 +64,14 @@
|
|||
warn: False
|
||||
creates: "{{ ansible_env.HOME }}/.local/bin/kops"
|
||||
|
||||
- name: install k9s-HEAD freebsd
|
||||
when: ansible_facts['system']|lower == 'freebsd'
|
||||
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
|
||||
args:
|
||||
warn: False
|
||||
creates: "{{ ansible_env.HOME }}/.local/bin/k9s"
|
||||
- name: clone k9s git
|
||||
ansible.builtin.git:
|
||||
repo: 'https://github.com/derailed/k9s.git'
|
||||
dest: "{{ ansible_env.HOME }}/dev/k9s"
|
||||
|
||||
- name: install newest k9s linux
|
||||
when: ansible_facts['system']|lower == 'linux'
|
||||
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
|
||||
- name: build k9s-HEAD
|
||||
ansible.builtin.shell: "cd ~/dev/k9s && gmake build && install -m 755 ./execs/k9s ~/.local/bin/k9s"
|
||||
args:
|
||||
warn: False
|
||||
creates: "{{ ansible_env.HOME }}/.local/bin/k9s"
|
||||
|
||||
- name: install stern-HEAD freebsd
|
||||
|
@ -113,3 +109,8 @@
|
|||
dest: "{{ ansible_env.HOME }}/.bashrc.d/"
|
||||
mode: "0640"
|
||||
|
||||
- name: install google-cloud-sdk fedora
|
||||
when: ansible_facts['system']|lower == 'fedora'
|
||||
dnf:
|
||||
name: google-cloud-sdk
|
||||
state: present
|
||||
|
|
Reference in New Issue