Basic functionality for play and playbook

This commit is contained in:
Ray Miller 2025-06-07 16:25:31 +01:00
parent 00c5c91b11
commit 49571984c2
Signed by: ray
GPG key ID: 043F786C4CD681B8
7 changed files with 131 additions and 60 deletions

View file

@ -2,7 +2,7 @@
(ordo inventory))
(list
(host #:name "localhost"
(host #:name "little-rascal"
#:connection (local-connection)
#:tags '(#:linux #:guix))
@ -15,5 +15,9 @@
#:tags '(#:linux #:coreos))
(host #:name "control-surface"
#:connection (ssh-connection "control-surface")
#:tags '(#:linux #:debian)))
#:connection (ssh-connection "control-surface" #:user "ray")
#:tags '(#:linux #:debian))
(host #:name "cargo-cult"
#:connection (ssh-connection "cargo-cult" #:user "ray")
#:tags '(#:linux #:synology)))

View file

@ -5,4 +5,13 @@
#:vars '((foo . 1) (bar . "baz"))
#:plays (list
(play #:name "Example play"
#:host "localhost")))
#:host "localhost"
#:tasks (list
(task #:name "First task"
#:action (const #t))
(task #:name "Second task"
#:action (lambda (conn)
(trigger-handler! 'foo))))
#:handlers (list
(handler #:name 'foo
#:action (const #f))))))