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
35 - name: Pre-configure iptables persistent
36 debconf: name=iptables-persistent question={{ item }} vtype=boolean value=true
39 - iptables-persistent/autosave_v4
40 - iptables-persistent/autosave_v6
46 - name: Install and configure OSM (It may require 10 min or more!)
48 cmd: ./install_osm.sh -y {{installer_args}} 2>&1 | tee osm_install_log.txt
51 register: osm_installation_results
53 PATH: "/snap/bin:{{ ansible_env.PATH }}"
54 when: curl_result is failed
57 var: osm_installation_results
60 - name: Check OSM reachability