Async task: generate dh

This commit is contained in:
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