Merge "Add supported Operating System check"
This commit is contained in:
commit
aad084cd15
@ -18,6 +18,14 @@
|
|||||||
gather_facts: "{{ gather_facts | default(True) }}"
|
gather_facts: "{{ gather_facts | default(True) }}"
|
||||||
max_fail_percentage: 20
|
max_fail_percentage: 20
|
||||||
user: root
|
user: root
|
||||||
|
pre_tasks:
|
||||||
|
- name: Check for a supported Operating System
|
||||||
|
assert:
|
||||||
|
that:
|
||||||
|
- ansible_distribution | lower == 'ubuntu'
|
||||||
|
- ansible_distribution_release | lower == 'trusty' or
|
||||||
|
ansible_distribution_release | lower == 'xenial'
|
||||||
|
msg: "The only supported platforms for this release are Ubuntu 14.04 LTS (Trusty) and Ubuntu 16.04 LTS (Xenial)"
|
||||||
roles:
|
roles:
|
||||||
- role: "openstack_hosts"
|
- role: "openstack_hosts"
|
||||||
tags:
|
tags:
|
||||||
|
@ -15,7 +15,11 @@
|
|||||||
|
|
||||||
- name: Check for a supported Operating System
|
- name: Check for a supported Operating System
|
||||||
assert:
|
assert:
|
||||||
that: ansible_distribution | lower == 'ubuntu'
|
that:
|
||||||
|
- ansible_distribution | lower == 'ubuntu'
|
||||||
|
- ansible_distribution_release | lower == 'trusty' or
|
||||||
|
ansible_distribution_release | lower == 'xenial'
|
||||||
|
msg: "The only supported platforms for this release are Ubuntu 14.04 LTS (Trusty) and Ubuntu 16.04 LTS (Xenial)"
|
||||||
tags:
|
tags:
|
||||||
- check-operating-system
|
- check-operating-system
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user