zuul/tests/fixtures/config/ansible/git/common-config/playbooks/hello-post.yaml

17 lines
353 B
YAML

- hosts: all
tasks:
- name: Register hello-world.txt file.
stat:
path: "{{zuul.executor.log_root}}/hello-world.txt"
register: st
- name: Assert hello-world.txt file.
assert:
that:
- st.stat.exists
- st.stat.isreg
- name: Simple shell task.
shell: |+
echo "Hello world"