1 # Copyright (c) 2018 Intel Corporation.
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
7 # http://www.apache.org/licenses/LICENSE-2.0
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.
15 # Configure proxy and install python to support ansible
16 - name: Create apt.conf proxy config
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
21 - name: Install python which is required to run ansible mudules
22 raw: apt-get update && apt-get install -y python
27 - name: Update configuration files
28 include_tasks: update_conf_files.yml
30 - name: Install packets
31 include_tasks: install_packets.yml
32 when: ansible_hostname in groups['ostack']
34 - name: Configure docker settings
35 include_tasks: configure_docker.yml
36 when: ansible_hostname in groups['ostack']
38 - name: generate and apply SSH keys
39 include_tasks: update_keys.yml