2 # Copyright 2020 British Telecommunications plc
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 # Author: Antonio Marsico (antonio.marsico@bt.com)
17 - name: Waiting target connection to become reachable/usable
20 - name: Gathering facts
23 - name: Copy OSM installer
25 src: "{{ osm_installer_path }}"
29 - name: Check OSM reachability
39 - name: Install and configure OSM (It may require 10 min or more!)
41 cmd: ./install_osm.sh -y {{installer_args}} 2>&1 | tee osm_install_log.txt
44 register: osm_installation_results
46 PATH: "/snap/bin:{{ ansible_env.PATH }}"
47 when: curl_result is failed
50 var: osm_installation_results
53 - name: Check OSM reachability