-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.yml
48 lines (42 loc) · 1.36 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
- name: add hosts to host list
hosts: localhost
gather_facts: no
tasks:
- name: add each host
add_host:
name: "controller-0"
groups: "undercloud"
ansible_ssh_user: "{{ install.host.username }}"
ansible_ssh_host: "{{ install.host.ip }}"
ansible_ssh_private_key_file: "{{ install.host.key_file }}"
when: (install.host is defined) and (install.host.ip is defined) and (install.host.username is defined) and (install.host.key_file is defined)
- name: Build packages from source
hosts: undercloud
tasks:
- name: Setting up repositories
include_role:
name: setup_repos
when: install.build.ovs|default(False)
- name: Create openvswitch RPMs from ovs source code
include_role:
name: build_ovs
when: install.build.ovs|default(False)
- name: Download packages
hosts: undercloud
tasks:
- name: Setting up repositories
include_role:
name: setup_repos
when: install.download|default(False)
- name: Download packages
include_role:
name: download_packages
when: install.download|default(False)
- name: Install packages
hosts: undercloud
tasks:
- name: Install packages
include_role:
name: install_packages
when: install.packages|default(False)