Change the filter to convert the variable to json
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
3b5f610b11
commit
35ec01727f
2 changed files with 2 additions and 2 deletions
|
@ -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: \ó/
|
||||
|
|
|
@ -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: \ó/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue