Simplify example
This commit is contained in:
parent
e9eb8681e4
commit
93c5cad460
1 changed files with 6 additions and 10 deletions
|
@ -1,12 +1,8 @@
|
|||
(use-modules (ordo core)
|
||||
(ordo inventory)
|
||||
(ordo action remote-cmd)
|
||||
(ordo logger)
|
||||
(srfi srfi-26))
|
||||
(ordo action remote-cmd))
|
||||
|
||||
(define uptime (task #:name "uptime" #:action (cut remote-cmd <> "uptime" #:return car)))
|
||||
|
||||
|
||||
;;(setup-logging! #:level 'DEBUG)
|
||||
;;(load-inventory! "examples/inventory.scm")
|
||||
;;(execute uptime 'all '())
|
||||
(execute (task #:name "uptime"
|
||||
#:action remote-cmd
|
||||
#:args (list "uptime" #:return car #:check? #t))
|
||||
'all
|
||||
#:continue-on-error? #t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue