Merge "Implement Virtual Switch resilience test case"
[yardstick.git] / ansible / roles / infra_rampup_stack_nodes / tasks / main.yml
1 # Copyright (c) 2018 Intel Corporation.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14 ---
15 # Configure proxy and install python to support ansible
16 - name: Create apt.conf proxy config
17   raw: >
18     echo 'Acquire::http::proxy "{{ hostvars[groups['jumphost'][0]].proxy_proto + '://' + hostvars[groups['jumphost'][0]].proxy_host_ip + ':' + hostvars[groups['jumphost'][0]].proxy_port }}";'
19     > /etc/apt/apt.conf.d/22proxy
20
21 - name: Install python which is required to run ansible mudules
22   raw: apt-get update && apt-get install -y python
23
24 - name: Gather facts
25   setup:
26
27 - name: Update configuration files
28   include_tasks: update_conf_files.yml
29
30 - name: Install packets
31   include_tasks: install_packets.yml
32   when: ansible_hostname in groups['ostack']
33
34 - name: Configure docker settings
35   include_tasks: configure_docker.yml
36   when: ansible_hostname in groups['ostack']
37
38 - name: generate and apply SSH keys
39   include_tasks: update_keys.yml