Async task: generate dh

pull/27/head
Emilien Mantel 2016-12-07 07:48:32 +01:00
parent 8caddedc68
commit 875c7cfb2e
2 changed files with 10 additions and 2 deletions

View File

@ -6,6 +6,8 @@
creates: "{{ nginx_dh_path }}"
when: nginx_dh is not string
notify: reload nginx
async: 1000
register: dh
- name: COPY | Deploy DH file from vars
copy: >
@ -41,3 +43,9 @@
notify: reload nginx
no_log: true
- name: Check DH command status
async_status: jid={{ dh.ansible_job_id }}
register: job_result
until: job_result.finished
retries: 30
when: nginx_dh is not string

View File

@ -212,7 +212,7 @@
redirect_https: true
# - name: 'owncloud.local'
# template: '_owncloud'
nginx_dh_length: 1024
nginx_dh_length: 2048
roles:
- ../../
post_tasks: