Basic functionality for play and playbook
This commit is contained in:
parent
00c5c91b11
commit
49571984c2
7 changed files with 131 additions and 60 deletions
|
@ -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)))
|
||||
|
|
|
@ -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))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue