Add a macro to make task definitions more succinct
This commit is contained in:
parent
7f5ec3ac29
commit
1843544e49
2 changed files with 13 additions and 7 deletions
|
@ -17,13 +17,12 @@
|
|||
(when update? "-u")
|
||||
#:check? #t)))
|
||||
(lambda ()
|
||||
(run conn "rm" "-rf" tmp-dir #:check? #t)))))
|
||||
(run conn "rm" "-rf" tmp-dir)))))
|
||||
|
||||
(playbook "Test Playbook"
|
||||
(play "Test play"
|
||||
#:host "localhost"
|
||||
(task "Install AWS CLI"
|
||||
(lambda ()
|
||||
(install-aws-cli #:update? #t
|
||||
#:install-dir (file-name-join* ($ #:fact.home-dir) ".local" "aws-cli")
|
||||
#:bin-dir (file-name-join* ($ #:fact.home-dir) ".local" "bin"))))))
|
||||
(task
|
||||
(install-aws-cli #:update? #t
|
||||
#:install-dir (file-name-join* ($ #:fact.home-dir) ".local" "aws-cli")
|
||||
#:bin-dir (file-name-join* ($ #:fact.home-dir) ".local" "bin")))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue