summaryrefslogtreecommitdiffstats
path: root/tools/cicdansible/install.yml
blob: 13071c3124d4df80cacc05f6f9b475fecab49b14 (plain)
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
---
#Installation of onap on open stack driven by ansible.
#Default parameters are set in group_vars/*.yml.
#Inventory is in hosts.yml, and parameters specific to instances are set there.
#Deploy infrastructure.
- name: "deploy infrastructure"
  hosts: localhost
  gather_facts: false
  roles:
    - role: setup_openstack_infrastructure
      vars:
        mode: deploy
#Play that configures all instances.
- name: "Instance configuration"
  hosts: instances
  any_errors_fatal: true
  roles:
    - role: setup_openstack_infrastructure
      vars:
        mode: configure
    - role: configure_instances
#Play that downloads sw resources.
- name: "Download resources"
  hosts: resources
  gather_facts: false
  roles:
    - role: install
      vars:
        mode: download_resources
#Perform installation.
- name: "Perform installation"
  hosts: installer
  roles:
    - role: install
      vars:
        mode: install