Compare commits
7 Commits
83cb3f57e5
...
22de5ba8ee
Author | SHA1 | Date |
---|---|---|
|
22de5ba8ee | |
|
143d35d96b | |
|
aeba65e283 | |
|
306c5e5bb1 | |
|
39c11333ad | |
|
2405b072a9 | |
|
a593fd9f70 |
|
@ -70,8 +70,9 @@
|
||||||
dest: "{{ ansible_env.HOME }}/dev/k9s"
|
dest: "{{ ansible_env.HOME }}/dev/k9s"
|
||||||
|
|
||||||
- name: build k9s-HEAD
|
- 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:
|
args:
|
||||||
|
chdir: "{{ ansible_env.HOME }}/dev/k9s"
|
||||||
creates: "{{ ansible_env.HOME }}/.local/bin/k9s"
|
creates: "{{ ansible_env.HOME }}/.local/bin/k9s"
|
||||||
|
|
||||||
- name: install stern-HEAD freebsd
|
- name: install stern-HEAD freebsd
|
||||||
|
@ -82,7 +83,7 @@
|
||||||
|
|
||||||
- name: install newest stern linux
|
- name: install newest stern linux
|
||||||
when: ansible_facts['system']|lower == '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:
|
args:
|
||||||
warn: False
|
warn: False
|
||||||
creates: "{{ ansible_env.HOME }}/.local/bin/stern"
|
creates: "{{ ansible_env.HOME }}/.local/bin/stern"
|
||||||
|
|
2
dnf.yml
2
dnf.yml
|
@ -4,7 +4,7 @@
|
||||||
become_user: root
|
become_user: root
|
||||||
become_method: sudo
|
become_method: sudo
|
||||||
dnf:
|
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
|
state: present
|
||||||
|
|
||||||
- name: add google-cloud-sdk repository
|
- name: add google-cloud-sdk repository
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: create outrun dark gnome-terminal profile
|
- name: create outrun dark gnome-terminal profile
|
||||||
script: base16-outrun-dark-256.sh
|
shell: ./base16-outrun-dark-256.sh
|
||||||
args:
|
args:
|
||||||
creates: "{{ ansible_env.HOME }}/.config/.gnome-terminal-profile-base16-outrun-dark-256-created"
|
creates: "{{ ansible_env.HOME }}/.config/.gnome-terminal-profile-base16-outrun-dark-256-created"
|
||||||
|
|
||||||
- name: create road grey light gnome-terminal profile
|
- name: create road grey light gnome-terminal profile
|
||||||
script: road-grey.sh
|
shell: ./road-grey.sh
|
||||||
args:
|
args:
|
||||||
creates: "{{ ansible_env.HOME }}/.config/.gnome-terminal-profile-road-grey-created"
|
creates: "{{ ansible_env.HOME }}/.config/.gnome-terminal-profile-road-grey-created"
|
||||||
|
|
||||||
|
|
|
@ -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
|
14
rust.yml
14
rust.yml
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install rustup
|
- 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:
|
args:
|
||||||
warn: False
|
warn: False
|
||||||
creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup"
|
creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup"
|
||||||
|
@ -76,18 +76,6 @@
|
||||||
args:
|
args:
|
||||||
creates: "{{ ansible_env.HOME }}/.cargo/bin/flamegraph"
|
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
|
- name: install git-gone
|
||||||
command: cargo install git-gone
|
command: cargo install git-gone
|
||||||
args:
|
args:
|
||||||
|
|
Reference in New Issue