2025-06-01 15:50:12 +01:00
|
|
|
(use-modules (ordo playbook))
|
|
|
|
|
|
|
|
(playbook
|
|
|
|
#:name "Example playbook"
|
|
|
|
#:vars '((foo . 1) (bar . "baz"))
|
|
|
|
#:plays (list
|
|
|
|
(play #:name "Example play"
|
2025-06-07 16:25:31 +01:00
|
|
|
#: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))))))
|