Create os-nosdn-osm scenario
[releng-xci-scenarios.git] / scenarios / os-nosdn-osm / role / os-nosdn-osm / tasks / install-osm.yml
1 # SPDX-license-identifier: Apache-2.0
2 ##############################################################################
3 # Copyright (c) 2018 Ericsson AB and others.
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 - name: clone OSM devops repo and checkout version {{ osm_devops_version }}
11   become_user: "{{ osm_install_user }}"
12   become: yes
13   git:
14     repo: "{{ osm_devops_git_url }}"
15     dest: "{{ osm_devops_clone_location }}"
16     version: "{{ osm_devops_version }}"
17
18 - name: install OSM
19   become_user: "{{ osm_install_user }}"
20   become: yes
21   command: "/bin/bash ./install_osm.sh -y --nolxd"
22   args:
23     chdir: "{{ osm_devops_clone_location }}/installers"
24     creates: "/usr/bin/osm"