rename bin files and move nb/taskwarrior-tui installs to ansible

This commit is contained in:
Tyler Starr 2022-12-29 01:57:43 -08:00
parent 9ad14d05ff
commit bb26e00736
15 changed files with 32 additions and 12 deletions

View File

@ -23,12 +23,6 @@
refreshPeriod = "168h"
include = ["*/dracula.zsh-theme", "*/lib/**"]
["bin/nb"]
type = "file"
url = "https://raw.github.com/xwmx/nb/master/nb"
executable = true
refreshPeriod = "168h"
#[".oh-my-zsh/custom/themes/dracula.zsh-theme"]
# type = "file"
# url = "https://github.com/dracula/zsh/archive/master.zip"

Binary file not shown.

View File

@ -0,0 +1,3 @@
#!/bin/bash
#
sudo mount -t cifs -o uid=tstarr,gid=tstarr,rw,vers=3.0,credentials=/home/tstarr/.smb //192.168.1.135/engi /home/tstarr/mnt/engi

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
set -e
# Search for package and return description
dnf search "$1" | cut -d ':' -f 2- | sed -n 2p

View File

@ -5,7 +5,7 @@ echo -e "Starting initial setup..."
# Install ansible python dependencies
sudo xpbs-install -Syu
sudo xbps-install python3 python3-pip ansible
sudo pip install pexpect
sudo pip install pexpect github3.py
# Install ansible extensions
ansible-galaxy install -r {{ .chezmoi.workingTree }}/provision/requirements.yml

View File

@ -1,5 +1,13 @@
- name: Grab {{ item.repo }} latest binaries
- name: Get {{ item.repo }} information
github_release:
user: "{{ item.user }}"
repo: "{{ item.repo }}"
action: latest_release
register: repo_latest
- name: Install {{ item.repo }}
unarchive:
src: "https://github.com/{{ item.user }}/{{ item.repo }}/releases/download/{{ repo_latest['tag'] }}/{{ item.name }}"
dest: /usr/local/bin
remote_src: true
become: true

View File

@ -0,0 +1,10 @@
- name: Install nb
ansible.builtin.get_url:
url: https://raw.github.com/xwmx/nb/master/nb
dest: /usr/local/bin/nb
mode: 0755
become: true
- name: Setup nb completions
command: nb completions install --download
become: true

View File

@ -22,3 +22,6 @@
loop:
- package: rbw # Unofficial command line client for bitwarden
repository: hostdir/binpkgs
- include_tasks: nb.yml # Command line and local web notetaking, bookmarking, archiving, and knowledge base application
- include_tasks: taskwarrior-tui.yml # Terminal User Interface (TUI) for Taskwarrior

View File

@ -0,0 +1,6 @@
- name: Install taskwarrior-tui
include_tasks: ../include/download-github.yml
loop:
- user: kdheepak
repo: taskwarrior-tui
name: taskwarrior-tui-x86_64-unknown-linux-gnu.tar.gz