2025-01-11 21:00:24 +00:00
|
|
|
(define-module (ordo)
|
2025-01-19 19:21:35 +00:00
|
|
|
#:declarative? #f
|
|
|
|
#:use-module (ice-9 match)
|
|
|
|
#:use-module (ordo playbook)
|
|
|
|
#:use-module (ordo play)
|
|
|
|
#:use-module (ordo task)
|
|
|
|
#:use-module (ordo handler)
|
2025-01-11 21:21:48 +00:00
|
|
|
#:use-module (ordo connection)
|
2025-01-19 19:21:35 +00:00
|
|
|
#:use-module (ordo inventory)
|
|
|
|
#:use-module (ordo vars)
|
|
|
|
#:use-module (ordo logger)
|
|
|
|
#:export (main)
|
|
|
|
#:re-export (add-host! local-connection ssh-connection run playbook play task handler $))
|
|
|
|
|
|
|
|
(define (main args)
|
|
|
|
(match-let (((_ inventory-path playbook-path) args))
|
|
|
|
(setup-logging #:level 'DEBUG)
|
|
|
|
(init-command-line-vars! '())
|
|
|
|
(load inventory-path)
|
|
|
|
(let ((playbook (load playbook-path)))
|
|
|
|
(run-playbook playbook)))
|
|
|
|
(quit))
|