Creating runs in distinct dirs
This commit is contained in:
parent
14e3caca1b
commit
c910c49efd
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
|||||||
|
runs
|
||||||
16
.justfile
16
.justfile
@ -1,13 +1,17 @@
|
|||||||
# set dotenv-load := true
|
# set dotenv-load := true
|
||||||
set shell := ["bash","-eu","-o","pipefail","-c"]
|
set shell := ["bash","-eu","-o","pipefail","-c"]
|
||||||
|
|
||||||
|
NOW := `date +%Y%m%d%H%M%S`
|
||||||
|
|
||||||
run: setup
|
run: setup
|
||||||
ts=$(date '+%FT%TZ')
|
mkdir -p "runs/{{ NOW }}"
|
||||||
mkdir -p "runs/${ts}"
|
cd "runs/{{ NOW }}"
|
||||||
cd ${ts}
|
sudo dmidecode > "runs/{{ NOW }}/dmidecode"
|
||||||
sudo dmidecode > dmidecode
|
rye run ansible localhost -m ansible.builtin.setup > "runs/{{ NOW }}/ansible.builtin.setup.json"
|
||||||
rye run ansible localhost -m ansible.builtin.setup > ansible.builtin.setup.json
|
inxi --full > "runs/{{ NOW }}/inxi.expanded"
|
||||||
inxi --expanded > inxi.expanded
|
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
rye sync
|
rye sync
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf runs
|
||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "inspector"
|
name = "inspector"
|
||||||
version = "0.1.2"
|
version = "0.1.3"
|
||||||
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