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)
|
(use-modules (ordo core)
|
||||||
(ordo inventory)
|
(ordo action remote-cmd))
|
||||||
(ordo action remote-cmd)
|
|
||||||
(ordo logger)
|
|
||||||
(srfi srfi-26))
|
|
||||||
|
|
||||||
(define uptime (task #:name "uptime" #:action (cut remote-cmd <> "uptime" #:return car)))
|
(execute (task #:name "uptime"
|
||||||
|
#:action remote-cmd
|
||||||
|
#:args (list "uptime" #:return car #:check? #t))
|
||||||
;;(setup-logging! #:level 'DEBUG)
|
'all
|
||||||
;;(load-inventory! "examples/inventory.scm")
|
#:continue-on-error? #t)
|
||||||
;;(execute uptime 'all '())
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue