From 9532cc754ed34cb6738813b4f56ebdf4a61b2bff Mon Sep 17 00:00:00 2001 From: "Christian M. Adams" Date: Tue, 4 May 2021 14:04:26 -0400 Subject: [PATCH] Use copy module, not shell --- roles/restore/tasks/deploy_awx.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/restore/tasks/deploy_awx.yml b/roles/restore/tasks/deploy_awx.yml index 7adfc5cc..00ba0fd0 100644 --- a/roles/restore/tasks/deploy_awx.yml +++ b/roles/restore/tasks/deploy_awx.yml @@ -14,9 +14,9 @@ register: tmp_spec - name: Write spec vars to temp file - shell: | - echo '{{ awx_object.stdout }} > {{ tmp_spec.path }}' - changed_when: false + copy: + content: "{{ awx_object.stdout }}" + dest: "{{ tmp_spec.path }}" - name: Include spec vars to save them as a dict include_vars: "{{ tmp_spec.path }}"