summaryrefslogtreecommitdiffstats
path: root/xci/installer
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2019-08-06 20:27:36 +0000
committerGerrit Code Review <gerrit@opnfv.org>2019-08-06 20:27:36 +0000
commita139f306f7adb824032df74b4183a3b6fca2e42e (patch)
treefda047eb520e915da875bd9704d6642f63f1dba0 /xci/installer
parent68948c7442b8bd90683923bedf90c8a8768941aa (diff)
parentc2e6ec42dbb6ddc93c9bdaf423f16454d0492b5a (diff)
Merge "Move variable definition to vars"
Diffstat (limited to 'xci/installer')
-rw-r--r--xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml15
-rw-r--r--xci/installer/osh/playbooks/roles/install-osh-mini/vars/main.yml18
2 files changed, 18 insertions, 15 deletions
diff --git a/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml b/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml
index e3fa2ddf..662f03d2 100644
--- a/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml
+++ b/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml
@@ -1,19 +1,4 @@
---
-- set_fact:
- container_distro_name: "opensuse"
- container_distro_version: "15"
- cacheable: yes
- when: osh_distro == 'opensuse'
- tags:
- - skip_ansible_lint
-
-- set_fact:
- container_distro_name: "ubuntu"
- container_distro_version: "xenial"
- cacheable: yes
- when: osh_distro == 'ubuntu'
- tags:
- - skip_ansible_lint
- name: Setup Clients
command: ./tools/deployment/common/setup-client.sh
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') }}"