Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
uib-ub
Drift
roller-ansible
apache
Commits
73695296
Commit
73695296
authored
Nov 29, 2021
by
Oyvind.Gjesdal
Browse files
Update certbot_ssl.yml
parent
a66124e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/certbot_ssl.yml
View file @
73695296
...
...
@@ -45,7 +45,7 @@
command
:
"
certbot
--apache
certonly
{{
certbot_ssl_dry_run
}}
--non-interactive
--agree-tos
--email
{{
item.serveradmin
}}
-d
{{
item.servername
}}{%if
item.serveralias
is
defined
or
item.certalias
is
defined
%},{{
ssl_alias
|
join(',')
}}
{%
if
item.ssl_force
|
default(false)
|
bool
%}--expand{%endif
%}
{%
else
%}{%
endif
%}"
# noqa 204
with_items
:
"
{{
apache_vhosts
}}"
become
:
true
when
:
"
(apache_certbot
and
not
letsencrypt_cert.stat.exists
and
item.ssl
is
defined
and
item.ssl
|
bool)
or
(item.ssl_force
|
default(false)
|
bool
and
(item.ssl_type
is
undefined
or
item.ssl_type
==
'
certbo
t'))"
when
:
"
(apache_certbot
and
not
letsencrypt_cert.stat.exists
and
item.ssl
is
defined
and
item.ssl
|
bool)
or
(item.ssl_force
|
default(false)
|
bool
and
(item.ssl_type
is
undefined
or
item.ssl_type
==
'
letsencryp
t'))"
notify
:
restart apache
-
name
:
"
delete
temp
file
from
server"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment