noheat: Upgrades, refactor, deploy Devstack
[integration.git] / deployment / noheat / cluster-rke / ansible / create.yml
1 ---
2 - name: Update packages
3   hosts: operator
4   become: true
5   tasks:
6     - name: Update ca-certificates
7       package:
8         name: ca-certificates
9         state: latest
10 - name: Install NFS
11   hosts: all
12   become: yes
13   roles:
14     - role: setup_nfs
15 - name: Set up bastion node for ONAP Docker registry
16   hosts: "nfs0"
17   become: yes
18   roles:
19     - role: create_bastion
20       destination: "{{ nexus }}"
21 - name: Add bastion information to the cluster nodes
22   hosts: control,workers
23   become: yes
24   tasks:
25     - name: Add cluster hostnames to /etc/hosts file
26       lineinfile:
27         path: /etc/hosts
28         line: "{{ hostvars['nfs0']['ansible_default_ipv4']['address'] }} {{ item }}"
29       loop:
30         - "nexus3.onap.org"
31 - name: Install Docker
32   become: yes
33   hosts: operator,control,workers
34   roles:
35     - role: setup_docker
36 - name: Deploy k8s
37   hosts: operator0
38   vars_files:
39     - ~/common-vars.yml
40   roles:
41     - role: setup_k8s
42 - name: Download OOM
43   hosts: operator0
44   tasks:
45     - name: Clone OOM
46       git:
47         repo: "https://git.onap.org/oom"
48         dest: "{{ oom_dir }}"
49         version: "{{ onap_branch }}"
50 - name: Install Helm
51   hosts: operator0
52   roles:
53     - role: setup_helm
54 - name: Install metallb, cert-manager and prometheus
55   hosts: operator0
56   gather_facts: false
57   roles:
58     - role: deps
59 - name: Deploy sm-onap
60   hosts: operator0
61   gather_facts: false
62   roles:
63     - role: oom