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 - name: Generate passwords
18 - name: Generate the kolla-build.conf
19 shell: tox -e genconfig
21 chdir: "{{ git_repos_path + kolla_path }}"
24 target: "{{ git_repos_path + 'all-in-one' }}"
27 target: "{{ git_repos_path + 'multinode' }}"
28 when: "groups['ostack'] | length > 1"
30 - name: Run kolla-ansible precheck
31 shell: kolla-ansible prechecks -i "{{ target }}"
33 - name: Build kolla-ansible
34 shell: kolla-build -b ubuntu -t source --profile default --tag pike --registry {{ ansible_host }}:4000 --push
36 - name: Pull images from registry
37 shell: kolla-ansible pull -i "{{ target }}"
39 - name: Run kolla-ansible deploy
40 shell: kolla-ansible deploy -i "{{ target }}"
42 - name: Create an openrc file
43 shell: kolla-ansible post-deploy