Compare commits

...

3 Commits

3 changed files with 22 additions and 11 deletions

View File

@ -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

View File

@ -54,3 +54,7 @@
import_tasks: oil-shell.yml
vars:
version: "0.8.9"
- name: Install neovim
import_tasks: neovim.yml

View File

@ -1,5 +1,11 @@
---
- name: clone neovim github repo
ansible.builtin.shell: "cd ~/dev && git clone https://github.com/neovim/neovim.git && cd neovim && gmake && sudo gmake install"
ansible.builtin.git:
repo: 'https://github.com/neovim/neovim.git'
dest: "{{ ansible_env.HOME }}/dev/neovim"
update: no
- name: build neovim
ansible.builtin.shell: "cd ~/dev/neovim && gmake && sudo gmake install"
args:
creates: /usr/local/bin/nvim