16 lines
522 B
YAML
16 lines
522 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 }}'
|
|
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 }}"
|