From f736895c8eaf1a718d0dd092a0075d9577cb4508 Mon Sep 17 00:00:00 2001 From: Andrea Cimbalo Date: Tue, 7 Mar 2017 23:20:48 +0100 Subject: [PATCH] lxc_guest: fix raw command response handling --- roles/lxc_guest/tasks/main.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/lxc_guest/tasks/main.yaml b/roles/lxc_guest/tasks/main.yaml index de80ee0..a204821 100644 --- a/roles/lxc_guest/tasks/main.yaml +++ b/roles/lxc_guest/tasks/main.yaml @@ -119,7 +119,7 @@ verbosity: 2 - set_fact: - request_output: "{{ request_result.stdout | string | from_json }}" + request_output: "{{ request_result.results[0].stdout | from_json }}" - debug: var: request_output @@ -150,7 +150,7 @@ verbosity: 2 - set_fact: - cert_key: "{{ cert_result.stdout | string | from_json }}" + cert_key: "{{ cert_result.results[0].stdout | string | from_json }}" - name: Write certificate to container container_file_write: