7304dbb6ca6fb401121661eff0d599c6a6d0fa3d
[integration.git] / deployment / noheat / cluster-rke / ansible / create.yml
1 ---
2 - name: Install NFS
3   hosts: all
4   become: yes
5   roles:
6     - role: setup_nfs
7 - name: Set up bastion node for ONAP Docker registry
8   hosts: "control0"
9   become: yes
10   roles:
11     - role: create_bastion
12       destination: "{{ nexus }}"
13 - name: Add bastion information to the cluster nodes
14   hosts: all
15   become: yes
16   tasks:
17     - name: Add cluster hostnames to /etc/hosts file
18       lineinfile:
19         path: /etc/hosts
20         line: "{{ hostvars['control0']['ansible_default_ipv4']['address'] }} {{ item }}"
21       loop:
22         - "nexus3.onap.org"