Implement apt interceptors

This commit is contained in:
Ray Miller 2025-01-26 14:30:04 +00:00
parent dd885ce559
commit 1784234385
Signed by: ray
GPG key ID: 043F786C4CD681B8
5 changed files with 72 additions and 48 deletions

17
examples/ubuntu.scm Normal file
View file

@ -0,0 +1,17 @@
(use-modules
(ordo playbook)
(ordo play)
(ordo interceptor)
(ordo interceptor apt))
(playbook
#:name "APT operations"
#:plays (list
(play
#:name "Test APT operations"
;;#:host '(tagged #:ubuntu)
#:host "localhost"
#:interceptors (list
(apt:update)
(apt:dist-upgrade)
(map apt:install (list "curl" "ca-certificates"))))))