X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=scenarios%2Fos-nosdn-osm%2Frole%2Fos-nosdn-osm%2Ftasks%2Finstall-osm.yml;fp=scenarios%2Fos-nosdn-osm%2Frole%2Fos-nosdn-osm%2Ftasks%2Finstall-osm.yml;h=30875e571a3300b8f8a20a535ab65bbfa5fd73d0;hb=a44164fde75c88ddbb5d2d9770aaeb8978c2c0fa;hp=0000000000000000000000000000000000000000;hpb=47145857b78f8093aa0653a16158e2940deac697;p=releng-xci-scenarios.git diff --git a/scenarios/os-nosdn-osm/role/os-nosdn-osm/tasks/install-osm.yml b/scenarios/os-nosdn-osm/role/os-nosdn-osm/tasks/install-osm.yml new file mode 100644 index 0000000..30875e5 --- /dev/null +++ b/scenarios/os-nosdn-osm/role/os-nosdn-osm/tasks/install-osm.yml @@ -0,0 +1,24 @@ +# SPDX-license-identifier: Apache-2.0 +############################################################################## +# Copyright (c) 2018 Ericsson AB and others. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +############################################################################## + +- name: clone OSM devops repo and checkout version {{ osm_devops_version }} + become_user: "{{ osm_install_user }}" + become: yes + git: + repo: "{{ osm_devops_git_url }}" + dest: "{{ osm_devops_clone_location }}" + version: "{{ osm_devops_version }}" + +- name: install OSM + become_user: "{{ osm_install_user }}" + become: yes + command: "/bin/bash ./install_osm.sh -y --nolxd" + args: + chdir: "{{ osm_devops_clone_location }}/installers" + creates: "/usr/bin/osm"