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