Properly quote the json messages

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2018-08-17 10:26:50 +02:00
parent c20b91e30d
commit eae028b31d
3 changed files with 3 additions and 3 deletions

View file

@ -5,7 +5,7 @@
mode: 0755
- name: Run the script
command: /usr/local/bin/debug.py "{{ msg | to_json }}"
command: /usr/local/bin/debug.py {{ msg | to_json | quote }}
register: output
environment:
TEST_VARIABLE: "{{ debug_token }}"

View file

@ -5,7 +5,7 @@
mode: 0755
- name: Run the script
command: /usr/local/bin/flag_commit_build.py "{{ msg | to_json }}"
command: /usr/local/bin/flag_commit_build.py {{ msg | to_json | quote }}
register: output
environment:
API_TOKEN: "{{ api_token_flag_commit_build }}"

View file

@ -5,7 +5,7 @@
mode: 0755
- name: Run the script
command: /usr/local/bin/flag_ci_pr.py "{{ msg | to_json }}"
command: /usr/local/bin/flag_ci_pr.py {{ msg | to_json | quote }}
register: output
environment:
API_TOKEN: "{{ api_token_flag_pr_ci }}"