Skip to content
Snippets Groups Projects
Commit 595d8492 authored by nimrod's avatar nimrod
Browse files

Merge branch 'ft/meta_assertions'

parents 4555313c 101029e8
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ galaxy_info:
platforms:
- name: OpenBSD
versions:
- 6.0
- '6.0'
- name: Ubuntu
versions:
- xenial
......
---
# tasks file for example
- name: Load meta vars
include_vars:
file: meta/main.yml
name: meta
- name: Assertions
assert:
that:
- ansible_os_family in ['OpenBSD', 'Debian']
- ansible_lsb.codename in ['xenial', 'trusty', 'precise', 'stretch', 'jessie', 'wheezy'] or ansible_distribution_version in ['6.0']
- ansible_distribution in meta.galaxy_info.platforms|map(attribute='name')
- |
(meta.galaxy_info.platforms|selectattr('name', 'equalto', ansible_distribution)|first).versions|intersect([ansible_distribution_release, ansible_distribution_version])|length > 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment