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
5822e8c1
Commit
5822e8c1
authored
Jun 10, 2021
by
Oyvind.Gjesdal
Browse files
loop on templates, to add ssl for all templates
parent
1aede9d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
tasks/uib_ssl.yml
View file @
5822e8c1
...
...
@@ -147,16 +147,17 @@
-
name
:
"
Add
apache
vhosts
ssl
template"
template
:
src
:
"
{{
apache_vhosts_template_ssl
}}"
dest
:
"
{{
apache_conf_path
}}/00_{{
apache_cert_vhost
.servername
}}_ssl.conf"
dest
:
"
{{
apache_conf_path
}}/00_{{
item
.servername
}}_ssl.conf"
owner
:
root
group
:
root
mode
:
0644
backup
:
true
# validate
:
"
apachectl
configtest"
notify
:
restart apache
when
:
"
apache_cert_vhost.ssl_type
|
default('certbot')==
'uib'"
when
:
"
item.ssl_type
|
default('certbot')==
'uib'"
loop
:
"
{{
apache_vhosts
}}"
vars
:
current_vhost
:
"
{{
apache_cert_vhost
.servername
}}"
current_vhost
:
"
{{
item
.servername
}}"
become
:
true
#- name: "get certificate url from ITA"
...
...
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