Add debug mode

This commit is contained in:
Emilien Mantel
2018-03-15 16:10:37 +01:00
parent def13392a7
commit 737dfbeb30
6 changed files with 18 additions and 8 deletions

View File

@@ -61,7 +61,7 @@
with_items: "{{ acme_create }}"
register: acme_get
failed_when: acme_get.rc != 0 and acme_get.rc != 2
no_log: true
no_log: not nginx_debug_role
- name: FILE | Create SSL dir per site
file:

View File

@@ -22,7 +22,7 @@
state: directory
with_items: "{{ nginx_ssl_pairs }}"
when: item.dest_key is not defined or item.dest_cert is not defined
no_log: true
no_log: not nginx_debug_role
- name: COPY | Deploy SSL keys
copy:
@@ -32,7 +32,7 @@
with_items: "{{ nginx_ssl_pairs }}"
when: item.key is defined
notify: restart nginx
no_log: true
no_log: not nginx_debug_role
- name: COPY | Deploy SSL certs
copy:
@@ -42,7 +42,7 @@
with_items: "{{ nginx_ssl_pairs }}"
when: item.cert is defined
notify: restart nginx
no_log: true
no_log: not nginx_debug_role
- name: Check DH command status
async_status: