Browse Source

add check on release variable

phabricator
Edoardo Putti 8 years ago
parent
commit
4f9f8e35e7
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      roles/lxc_guest/tasks/main.yaml

+ 5
- 0
roles/lxc_guest/tasks/main.yaml View File

@ -9,6 +9,11 @@
name: "{{ vm_name }}"
register: container_exists
- name: Check debian release
assert:
that: distro in [ 'wheezy', 'jessie', 'stretch', 'sid', ]
msg: "release {{ distro }} not supported by debian template"
- block:
- name: create the lxc container
lxc_container:


Loading…
Cancel
Save