Add support for facts.
This commit is contained in:
parent
5376ce9f19
commit
7f507c8e6d
4 changed files with 64 additions and 10 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue