Sha256: a301d3c081c891788752fb0606eaf70df225b17548b991e4a5d3bdd294258d82
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
namespace :certbot do desc "Setup certbot certificate for the domain defined in `nginx_server_name` in the stage file" task :install do on roles(:app) do return unless fetch(:certbot_enable_ssl) sudo "certbot --nginx -d #{fetch(:nginx_server_name)} --non-interactive --agree-tos --email #{fetch(:certbot_email)} #{fetch(:certbot_redirect_to_https) ? '--redirect' : ''} #{fetch(:certbot_use_acme_staging) ? '--dry-run' : ''}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
capistrano-cookbook-5.0.2 | lib/capistrano/cookbook/tasks/certbot.cap |