Use copy module, not shell

This commit is contained in:
Christian M. Adams
2021-05-04 14:04:26 -04:00
parent 15bc12b7f6
commit 9532cc754e

View File

@@ -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 }}"