Add Ansible-lint CI step (#4411)

* Add ansible-lint as gitlab-ci step

* Fix jinja2 syntax in include_tasks that breaks ansible-lint

* Use a block scalar to get around gitlab quoting/escaping rules

* Run ansible-lint in verbose mode in CI
This commit is contained in:
MarkusTeufelberger
2019-04-10 11:04:16 +02:00
committed by Kubernetes Prow Robot
parent a678d1be9d
commit d2a1ac3b0c
4 changed files with 36 additions and 1 deletions

View File

@@ -4,9 +4,10 @@
- not skip_downloads|default(false)
- name: "Download items"
include_tasks: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
include_tasks: "{{ include_file }}"
vars:
download: "{{ download_defaults | combine(item.value) }}"
include_file: "download_{% if download.container %}container{% else %}file{% endif %}.yml"
with_dict: "{{ downloads }}"
when:
- not skip_downloads|default(false)