Skip to content

Commit

Permalink
Merge pull request #158 from evolution/common-distro-version-check
Browse files Browse the repository at this point in the history
Added test of distro and version
  • Loading branch information
EvanK committed Aug 11, 2016
2 parents cbfd7ca + ea813c6 commit c1aefd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions provisioning/roles/common/tasks/main.yml
Expand Up @@ -3,6 +3,10 @@
aliases: []
when: aliases is not defined

- name: Test distro and version, as we only support specifically Ubuntu 12
fail: msg="{{ansible_distribution}} {{ansible_distribution_version}} is not supported"
when: ansible_distribution != "Ubuntu" or ansible_distribution_major_version != "12"

- name: Determine optimal hostname
command: echo {{stage}}.{{domain}}
register: new_host
Expand Down

0 comments on commit c1aefd6

Please sign in to comment.