summaryrefslogtreecommitdiffstats
path: root/tests/integration/setup.yaml
blob: 4af9a129f7532c4dac0a1d2357650af03cc00a06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
##############################################################################
# Copyright (c) 2017 ZTE Corporation 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
##############################################################################

# Prepare connection to SUT (System Under Test)
- hosts: fuel-master
  gather_facts: no
  tasks:
  - name: collect facts of fuel hosts
    fuel:
  - name: update inventory file
    template: src={{ qtip_resources }}/template/hosts.j2 dest=./hosts
    delegate_to: localhost
  - name: update ssh.cfg file
    template: src={{ qtip_resources }}/template/ssh.cfg.j2 dest=./ssh.cfg
    delegate_to: localhost