From cf599530c18ad10dafe6de09a72cd0332e766137 Mon Sep 17 00:00:00 2001 From: Emmanouil Kampitakis Date: Tue, 9 Apr 2019 00:30:30 +0200 Subject: [PATCH 1/2] Notify restart handler when synapse is installed --- tasks/deployment.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/deployment.yml b/tasks/deployment.yml index 88675c9..b4850da 100644 --- a/tasks/deployment.yml +++ b/tasks/deployment.yml @@ -54,6 +54,7 @@ tags: - skip_ansible_lint # skip when clause - pre_install + notify: restart matrix-synapse when: matrix_synapse_deployment_method == "pip" - name: install synapse with docker From d81a3b493fcbecf93472fe77ebbac720105271fc Mon Sep 17 00:00:00 2001 From: Emmanouil Kampitakis Date: Tue, 9 Apr 2019 00:31:18 +0200 Subject: [PATCH 2/2] Fix fail such that the message returns the expected and the received version --- tests/test-pip.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-pip.yml b/tests/test-pip.yml index 37ea470..156e607 100644 --- a/tests/test-pip.yml +++ b/tests/test-pip.yml @@ -19,8 +19,8 @@ delay: 2 - name: Check returned api version - fail: > - Return value is not as expected {{ api_version }} + fail: + msg: "Return value {{ api_version }} is not as expected {{ matrix_synapse_version }}" when: matrix_synapse_version != "v"~(api_version.content | from_json).server.version roles: - role: geerlingguy.pip