Let's test things in stg as well
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
02cdd3f724
commit
3b5f610b11
1 changed files with 27 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
- name: buildsys.build.state.change
|
||||||
|
hosts: localhost
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- debug: var=msg
|
||||||
|
|
||||||
|
- name: run my own script
|
||||||
|
hosts: localhost
|
||||||
|
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 '{{ msg | tojson }}'
|
||||||
|
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