mise au point certbot
This commit is contained in:
@@ -24,13 +24,13 @@
|
|||||||
- name: generate certificates for domaine and subdomains
|
- name: generate certificates for domaine and subdomains
|
||||||
vars:
|
vars:
|
||||||
subdomains: "-d {{ apache_server_alias | join( ' -d ' ) }}"
|
subdomains: "-d {{ apache_server_alias | join( ' -d ' ) }}"
|
||||||
command: certbot certonly --webroot --webroot-path {{ apache_document_root }} -d {{ apache_server_name }} {{ subdomains }}
|
command: certbot certonly --agree-tos -m {{ apache_ssl_root_email }} --webroot --webroot-path {{ apache_document_root }} -d {{ apache_server_name }} {{ subdomains }}
|
||||||
args:
|
args:
|
||||||
creates: "{{ apache_ssl_chain }}"
|
creates: "{{ apache_ssl_chain }}"
|
||||||
when: apache_server_alias is defined
|
when: apache_server_alias is defined
|
||||||
|
|
||||||
- name: generate certificates
|
- name: generate certificates
|
||||||
command: certbot certonly --webroot --webroot-path {{ apache_document_root }} -d {{ apache_server_name }}
|
command: certbot certonly --agree-tos -m {{ apache_ssl_root_email }} --webroot --webroot-path {{ apache_document_root }} -d {{ apache_server_name }}
|
||||||
args:
|
args:
|
||||||
creates: "{{ apache_ssl_chain }}"
|
creates: "{{ apache_ssl_chain }}"
|
||||||
when: apache_server_alias is not defined
|
when: apache_server_alias is not defined
|
||||||
|
|||||||
@@ -69,5 +69,5 @@
|
|||||||
|
|
||||||
- name: zabbix setup
|
- name: zabbix setup
|
||||||
import_tasks: zabbix.yml
|
import_tasks: zabbix.yml
|
||||||
when: apache_use_zabbix and apache_use_ssl
|
when: apache_use_zabbix|bool
|
||||||
tags: zabbix, ssl
|
tags: zabbix, ssl
|
||||||
Reference in New Issue
Block a user