zuul-jobs/playbooks/dhall/prepare.yaml
Tristan Cacqueray 4903ecd30b dhall-diff: add new job
This change adds a new dhall-diff job to verify generated config
is idempotent.

Change-Id: I96a335dc78c4fa74564b854997433e5be0b5e633
2020-05-03 19:06:37 +00:00

26 lines
521 B
YAML

- hosts: all
tasks:
- name: Check for tools
command: type make git bzip2
failed_when: false
register: _tools
- name: Install tools
package:
name:
- git
- bzip2
- make
become: true
when: _tools.rc != 0
- name: Check for dhall command
command: type -p dhall-to-json
failed_when: false
register: _dhall_tools
- name: Install dhall
include_role:
name: ensure-dhall
when: _dhall_tools.rc != 0