Let's flag successful builds in prod as well
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
fed379c81b
commit
178fc77191
1 changed files with 7 additions and 21 deletions
|
@ -2,26 +2,12 @@
|
||||||
- name: buildsys.build.state.change
|
- name: buildsys.build.state.change
|
||||||
hosts: localhost
|
hosts: localhost
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- "/srv/private/vars_loopabull.yml"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- debug: var=msg
|
- debug: var=msg
|
||||||
|
|
||||||
- name: run my own script
|
roles:
|
||||||
hosts: localhost
|
- {role: flag_build_commits, msg: msg}
|
||||||
gather_facts: false
|
|
||||||
tasks:
|
|
||||||
- name: Install my own script
|
|
||||||
copy:
|
|
||||||
src: files/debug.py
|
|
||||||
dest: /usr/local/bin/debug.py
|
|
||||||
mode: 0755
|
|
||||||
|
|
||||||
- name: Run the script
|
|
||||||
command: /usr/local/bin/debug.py '{{ msg | to_json }}'
|
|
||||||
register: output
|
|
||||||
environment:
|
|
||||||
TEST_VARIABLE: \ó/
|
|
||||||
|
|
||||||
- name: Show the output of the script
|
|
||||||
debug:
|
|
||||||
msg: "Output of the script: {{ output }}"
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue