Skip to content
This repository was archived by the owner on Feb 14, 2020. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tasks/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
#

- fail:
msg="only Ubuntu is supported"
when: ansible_distribution != 'Ubuntu'
msg="only Ubuntu and Debain are supported"
when: not (ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian')

- fail:
msg="only Ubuntu >= 12.04 is supported"
when: ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('12.04', '<')
msg="only Ubuntu >= 12.04 and Debian >=8 are supported"
when: (ansible_distribution == 'Ubuntu' and ansible_distribution_version | version_compare('12.04', '<')) or
(ansible_distribution == 'Debian' and ansible_distribution_version | version_compare('8', '<'))

- name: ensure mandatory variables are set
fail:
Expand Down