1
0

Рабочие роли вынесены на уровень вверх

This commit is contained in:
2018-11-25 15:08:16 +03:00
parent 368eeeaa0b
commit 50b61315eb
13 changed files with 3 additions and 5 deletions

View File

@ -0,0 +1,9 @@
---
nginx_proxy_name: ''
nginx_proxy_template: ''
nginx_proxy_params: {}
nginx_ssl_type: ~
nginx_ssl_name: '{{ nginx_proxy_name }}'
nginx_ssl_email: ''
nginx_ssl_domains: []

View File

@ -0,0 +1,20 @@
---
- name: "Configure ssl certificate for {{ nginx_proxy_name }}"
include_role:
name: ssl-certificate
vars:
cert_type: '{{ nginx_ssl_type }}'
cert_name: '{{ nginx_ssl_name }}'
cert_email: '{{ nginx_ssl_email }}'
cert_domains: '{{ nginx_ssl_domains }}'
when: nginx_ssl_type is not none
tags:
- webserver
- name: "Create nginx config for {{ nginx_proxy_name }} from {{ nginx_proxy_template }}."
template:
src: '{{ nginx_proxy_template }}'
dest: "/etc/nginx/sites-enabled/{{ nginx_proxy_name }}.conf"
notify: restart nginx
tags:
- webserver