Change the filter to convert the variable to json

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-08 12:06:07 +02:00
parent 3b5f610b11
commit 35ec01727f
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@
mode: 0755
- name: Run the script
command: /usr/local/bin/debug.py msg '{{ msg | tojson }}'
command: /usr/local/bin/debug.py msg '{{ msg | to_json }}'
register: output
environment:
TEST_VARIABLE: \ó/

View file

@ -16,7 +16,7 @@
mode: 0755
- name: Run the script
command: /usr/local/bin/debug.py msg '{{ msg | tojson }}'
command: /usr/local/bin/debug.py msg '{{ msg | to_json }}'
register: output
environment:
TEST_VARIABLE: \ó/