Adding more commands of value.
This commit is contained in:
parent
4b19a97b84
commit
14e3caca1b
11
.justfile
11
.justfile
@ -1,8 +1,13 @@
|
|||||||
# set dotenv-load := true
|
# set dotenv-load := true
|
||||||
set shell := ["bash","-eu","-o","pipefail","-c"]
|
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:
|
setup:
|
||||||
rye sync
|
rye sync
|
||||||
|
|
||||||
run:
|
|
||||||
rye run ansible localhost -m ansible.builtin.setup
|
|
||||||
|
|||||||
13
install.sh
13
install.sh
@ -2,16 +2,8 @@
|
|||||||
|
|
||||||
# system dependencies
|
# system dependencies
|
||||||
sudo apt update
|
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
|
# Install rye if not found
|
||||||
if ! command -v rye &> /dev/null
|
if ! command -v rye &> /dev/null
|
||||||
@ -29,6 +21,3 @@ else
|
|||||||
source "$HOME/.rye/env"
|
source "$HOME/.rye/env"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# rye setup will manage python version and dependencies
|
|
||||||
rye sync
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "inspector"
|
name = "inspector"
|
||||||
version = "0.1.1"
|
version = "0.1.2"
|
||||||
description = "System inspection routine."
|
description = "System inspection routine."
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Sean Wilbur", email = "sean@abutili.com" }
|
{ name = "Sean Wilbur", email = "sean@abutili.com" }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user