feat: Add variable to control certbot --dry-run flag
This commit is contained in:
@@ -3,5 +3,6 @@
|
||||
become: true
|
||||
vars:
|
||||
bool_create_vhost: false
|
||||
bool_cert_dry_run: true
|
||||
roles:
|
||||
- nginx-proxy
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
certbot certonly --standalone
|
||||
--non-interactive
|
||||
--agree-tos
|
||||
--dry-run
|
||||
{{ '--dry-run' if bool_cert_dry_run | default(true) else '' }}
|
||||
--email {{ certbot_email | default("admin@" + mydomain) }}
|
||||
-d {{ item.key + "." + mydomain if not item.value.internal else item.key + ".internal." + mydomain }}
|
||||
loop: "{{ servernames | dict2items }}"
|
||||
|
||||
Reference in New Issue
Block a user