zuul-jobs/test-playbooks/dhall/test-dhall-diff.yaml
Sorin Sbarnea 5c263fb437 test-playbooks: avoid warnings with shell/command
Avoids runtime warnings from use of Ansible shell/command module when
executed commands also have ansible modules.

Change-Id: I4e415cbd34f0f4cb15857051bf95458e0316de86
2020-06-04 18:54:37 +01:00

33 lines
709 B
YAML

- hosts: all
tasks:
- name: Success dhall-diff
include_role:
name: render-diff
- name: Ensure dhall-diff succeeded
assert:
that:
- render_diff.stdout == ''
- name: Introduce a difference
copy:
content: "44"
dest: "{{ zuul.project.src_dir }}/test.yaml"
- name: Commit the difference
command: git commit -a -m "test update"
args:
chdir: "{{ zuul.project.src_dir }}"
warn: false
- name: Failed dhall-diff
include_role:
name: render-diff
vars:
diff_ignore_errors: yes
- name: Ensure dhall-diff failed
assert:
that:
- render_diff.stdout != ''