From 875c7cfb2e276eb597ae4b6cad4eec7566b5a79b Mon Sep 17 00:00:00 2001 From: Emilien Mantel Date: Wed, 7 Dec 2016 07:48:32 +0100 Subject: [PATCH] Async task: generate dh --- tasks/ssl.yml | 8 ++++++++ tests/test.yml | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/tasks/ssl.yml b/tasks/ssl.yml index c87747a..8b7a470 100644 --- a/tasks/ssl.yml +++ b/tasks/ssl.yml @@ -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 diff --git a/tests/test.yml b/tests/test.yml index a591bd6..29f7977 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -186,7 +186,7 @@ headers: 'X-proxyfied': '1' - name: 'deleted.local' - state: 'absent' + state: 'absent' - name: 'redirect-to.local' redirect_to: 'http://test.local' - name: 'backuppc.local' @@ -212,7 +212,7 @@ redirect_https: true # - name: 'owncloud.local' # template: '_owncloud' - nginx_dh_length: 1024 + nginx_dh_length: 2048 roles: - ../../ post_tasks: