mise au point certbot

This commit is contained in:
2021-09-23 23:25:38 +02:00
parent 12a0b030e9
commit 5957973a04
2 changed files with 3 additions and 3 deletions

View File

@@ -24,13 +24,13 @@
- name: generate certificates for domaine and subdomains
vars:
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:
creates: "{{ apache_ssl_chain }}"
when: apache_server_alias is defined
- 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:
creates: "{{ apache_ssl_chain }}"
when: apache_server_alias is not defined

View File

@@ -69,5 +69,5 @@
- name: zabbix setup
import_tasks: zabbix.yml
when: apache_use_zabbix and apache_use_ssl
when: apache_use_zabbix|bool
tags: zabbix, ssl