Add support for facts.

This commit is contained in:
Ray Miller 2025-01-13 20:15:41 +00:00
parent 5376ce9f19
commit 7f507c8e6d
Signed by: ray
GPG key ID: 043F786C4CD681B8
4 changed files with 64 additions and 10 deletions

View file

@ -24,16 +24,12 @@
(playbook "Test Playbook"
(play "Test play"
#:connection (local-connection)
(task "Get home directory"
(lambda (c) (run c "sh" "-c" "[ -n \"$HOME\" ] && echo $HOME" #:check? #t #:return car))
#:register (register-play-var 'home-dir)
#:tags '(#:always))
(task "Install AWS CLI"
(lambda (c)
(install-aws-cli c
#:update? #t
#:install-dir (file-name-join* ($ 'home-dir) ".local" "aws-cli")
#:bin-dir (file-name-join* ($ 'home-dir) ".local" "bin")))))))
#:install-dir (file-name-join* ($$ #:pwent #:home-dir) ".local" "aws-cli")
#:bin-dir (file-name-join* ($$ #:pwent #:home-dir) ".local" "bin")))))))
(setup-logging)
(run-playbook test-playbook)