loopabull-tasks/playbooks/roles/flag_build_commits/tasks/main.yml
Pierre-Yves Chibon eae028b31d Properly quote the json messages
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
2018-08-17 10:26:50 +02:00

16 lines
528 B
YAML

- name: Install script flagging commits on dist-git upon successful build
copy:
src: files/flag_commit_build.py
dest: /usr/local/bin/flag_commit_build.py
mode: 0755
- name: Run the script
command: /usr/local/bin/flag_commit_build.py {{ msg | to_json | quote }}
register: output
environment:
API_TOKEN: "{{ api_token_flag_commit_build }}"
API_TOKEN_STG: "{{ api_token_flag_commit_build_stg }}"
- name: Show the output of the script
debug:
msg: "Output of the script: {{ output }}"