- hosts: localhost
vars:
- artifacts: ./artifacts
tags:
- classic
remote_user: root
tasks:
- name: badcode
block:
- name: run the badcode test
shell: exec > /tmp/badcode.test.log 2>&1 && ./badcode/runtest.sh
always:
- name: pull out logs
fetch:
dest: "{{ artifacts }}/"
src: "/tmp/badcode.test.log"
flat: yes
- name: pull out expected
fetch:
dest: "{{ artifacts }}/"
src: "./badcode/badcode.asl.expected"
flat: yes
- name: pull out actual
fetch:
dest: "{{ artifacts }}/"
src: "./badcode/badcode.asl.actual"
flat: yes