Compare commits

...

7 Commits

6 changed files with 22 additions and 18 deletions

View File

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

View File

@ -4,7 +4,7 @@
become_user: root
become_method: sudo
dnf:
name: ShellCheck,alien,automake,awscli,bash-completion,bison,clang,cmake,curl,direnv,elfutils-libelf-devel,emacs,fakeroot,flex,fzf,gcc,gcc-c++,git,glances,htop,httpie,jq,kernel-devel,libaio-devel,libblkid-devel,libffi-devel,libtirpc-devel,libtool,libudev-devel,libuuid-devel,libvirt-daemon-kvm,llvm,llvm-devel,llvm10,lsd,make,man-pages,moreutils,most,nodejs,npm,openssh,openssh-clients,openssl-devel,openssl-perl,perl-FindBin,podman,qemu-kvm,skopeo,sqlite,sqlite-devel,the_silver_searcher,tmux,uuid-devel,vim,which,zlib-devel
name: ShellCheck,alien,automake,awscli,bash-completion,bison,clang,cmake,curl,direnv,elfutils-libelf-devel,emacs,fakeroot,flex,fzf,gcc,gcc-c++,git,glances,htop,httpie,jq,kernel-devel,libaio-devel,libblkid-devel,libffi-devel,libtirpc-devel,libtool,libudev-devel,libuuid-devel,libvirt-daemon-kvm,llvm,llvm-devel,llvm10,lsd,make,man-pages,moreutils,most,nodejs,npm,openssh,openssh-clients,openssl-devel,openssl-perl,perl-FindBin,podman,podman-compose,qemu-kvm,skopeo,sqlite,sqlite-devel,the_silver_searcher,tmux,uuid-devel,vim,which,zlib-devel
state: present
- name: add google-cloud-sdk repository

View File

@ -1,11 +1,11 @@
---
- name: create outrun dark gnome-terminal profile
script: base16-outrun-dark-256.sh
shell: ./base16-outrun-dark-256.sh
args:
creates: "{{ ansible_env.HOME }}/.config/.gnome-terminal-profile-base16-outrun-dark-256-created"
- name: create road grey light gnome-terminal profile
script: road-grey.sh
shell: ./road-grey.sh
args:
creates: "{{ ansible_env.HOME }}/.config/.gnome-terminal-profile-road-grey-created"

15
playbook-Linux.sh Executable file
View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
sudo dnf install -y ansible ansible-collection-community-general
# this needs to be set on the first run
# otherwise ansible can't use the new $PATH
case ":${PATH}:" in
*:"$HOME/.cargo/bin":*)
;;
*)
export PATH="$HOME/.cargo/bin:$PATH"
;;
esac
ansible-playbook -i linux-inventory.yml localdev.yml

0
road-grey.sh Normal file → Executable file
View File

View File

@ -1,6 +1,6 @@
---
- name: install rustup
command: /usr/bin/env bash -c "curl -sSf -o rustup_init https://sh.rustup.rs && /usr/bin/env bash rustup_init --no-modify-path --verbose -y --default-toolchain stable && rm -f rustup_init && source ~/.cargo/env && rustup install nightly"
command: /usr/bin/env bash -c "curl -sSf -o rustup_init https://sh.rustup.rs && /usr/bin/env bash rustup_init --no-modify-path --verbose -y --default-toolchain stable && rm -f rustup_init"
args:
warn: False
creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup"
@ -76,18 +76,6 @@
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/flamegraph"
- name: install frawk freebsd
shell: LLVM_SYS_100_PREFIX=/usr/local/llvm10 cargo +nightly install frawk
when: ansible_facts['system']|lower == 'freebsd'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
- name: install frawk linux
shell: LLVM_SYS_100_PREFIX=/usr/lib64/llvm10 cargo +nightly install frawk
when: ansible_facts['system']|lower == 'linux'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
- name: install git-gone
command: cargo install git-gone
args: