You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the not_if/only_if directives could be applied to all resources
contained within a define, it would help to DRY up my code.. right now I'm
using a workaround like this:
define:bootstrap_installdotest_cmd="dpkg-query -Wf'${db:Status-abbrev}' #{params[:name]} | grep '^i'"installed=run_command(test_cmd,error: false).exit_status == 0# run install if required(params[:name],params[:dependencies]).mapdo |pkg|
"/tmp/#{pkg}_amd64.deb"end.eachdo |path|
remote_filepathdonot_ifinstalledendexecute"dpkg -i #{path}"donot_ifinstalledendfilepathdoaction:deletenot_ifinstalledendendend
If the
not_if
/only_if
directives could be applied to all resourcescontained within a
define
, it would help to DRY up my code.. right now I'musing a workaround like this:
Whereas I'd like to be able to do:
The text was updated successfully, but these errors were encountered: