mirror of
https://github.com/HanXHX/ansible-nginx.git
synced 2026-03-10 10:12:09 +07:00
acme.sh : no_log + fix check created
This commit is contained in:
@@ -57,10 +57,11 @@
|
||||
- name: SHELL | Get certificates
|
||||
shell: '{{ nginx_acmesh_bin }} --issue{% if item.name is string %} -d {{ item.name }}{% else %}{% for name in item.name %} -d {{ name }}{% endfor %}{% endif %} --nginx {% if nginx_acmesh_test %}--test{% endif %}'
|
||||
args:
|
||||
creates: "/opt/acme.sh/{{ item | nginx_site_name }}/{{ item | nginx_site_name }}.key"
|
||||
creates: "/root/.acme.sh/{{ item | nginx_site_name }}/{{ item | nginx_site_name }}.key"
|
||||
with_items: "{{ acme_create }}"
|
||||
register: acme_get
|
||||
failed_when: acme_get.rc != 0 and acme_get.rc != 2
|
||||
no_log: true
|
||||
|
||||
- name: FILE | Create SSL dir per site
|
||||
file:
|
||||
|
||||
Reference in New Issue
Block a user