Adding more commands of value.

This commit is contained in:
Sean Wilbur 2025-09-09 16:07:58 -05:00
parent 4b19a97b84
commit 14e3caca1b
3 changed files with 10 additions and 16 deletions

View File

@ -1,8 +1,13 @@
# set dotenv-load := true
set shell := ["bash","-eu","-o","pipefail","-c"]
run: setup
ts=$(date '+%FT%TZ')
mkdir -p "runs/${ts}"
cd ${ts}
sudo dmidecode > dmidecode
rye run ansible localhost -m ansible.builtin.setup > ansible.builtin.setup.json
inxi --expanded > inxi.expanded
setup:
rye sync
run:
rye run ansible localhost -m ansible.builtin.setup

View File

@ -2,16 +2,8 @@
# system dependencies
sudo apt update
sudo apt install -y git
sudo apt install -y git inxi just dmidecode
# Install just if not found
if ! command -v just &> /dev/null
then
echo "just not found, installing..."
sudo apt install -y just
else
echo "just is already installed."
fi
# Install rye if not found
if ! command -v rye &> /dev/null
@ -29,6 +21,3 @@ else
source "$HOME/.rye/env"
fi
fi
# rye setup will manage python version and dependencies
rye sync

View File

@ -1,6 +1,6 @@
[project]
name = "inspector"
version = "0.1.1"
version = "0.1.2"
description = "System inspection routine."
authors = [
{ name = "Sean Wilbur", email = "sean@abutili.com" }