diff options
author | Manuel Buil <mbuil@suse.com> | 2019-08-06 09:55:52 +0200 |
---|---|---|
committer | Manuel Buil <mbuil@suse.com> | 2019-08-06 13:10:32 +0200 |
commit | c2e6ec42dbb6ddc93c9bdaf423f16454d0492b5a (patch) | |
tree | 0a4183e096149845eaa881110100fa03dbd3f40a /xci/installer/osh/playbooks/roles/install-osh-mini/vars | |
parent | b02b1a22a72095c3e98602739b1e7dd83734a495 (diff) |
Move variable definition to vars
Ansible best practices recommend doing the definition of variables in
the vars directory instead of directly in the tasks
deploy-scenario:k8-calico-nofeature
installer-type:osh
Change-Id: Ia5e215f8492a901b8c75ac06ee23258249f7f09a
Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'xci/installer/osh/playbooks/roles/install-osh-mini/vars')
-rw-r--r-- | xci/installer/osh/playbooks/roles/install-osh-mini/vars/main.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/xci/installer/osh/playbooks/roles/install-osh-mini/vars/main.yml b/xci/installer/osh/playbooks/roles/install-osh-mini/vars/main.yml new file mode 100644 index 00000000..03c02a83 --- /dev/null +++ b/xci/installer/osh/playbooks/roles/install-osh-mini/vars/main.yml @@ -0,0 +1,18 @@ +--- +# Copyright 2019, SUSE Linux GmbH +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +cacheable: yes +container_distro_name: "{{ (osh_distro=='opensuse') | ternary('opensuse', 'ubuntu') }}" +container_distro_version: "{{ (osh_distro=='opensuse') | ternary('15', 'xenial') }}" |