From 3b5f610b112069fbf67306704705553aba2ce175 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Wed, 8 Aug 2018 11:57:38 +0200 Subject: [PATCH] Let's test things in stg as well Signed-off-by: Pierre-Yves Chibon --- ...roject.stg.buildsys.build.state.change.yml | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 playbooks/org.fedoraproject.stg.buildsys.build.state.change.yml diff --git a/playbooks/org.fedoraproject.stg.buildsys.build.state.change.yml b/playbooks/org.fedoraproject.stg.buildsys.build.state.change.yml new file mode 100644 index 0000000..0263180 --- /dev/null +++ b/playbooks/org.fedoraproject.stg.buildsys.build.state.change.yml @@ -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 }}" +