aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/noheat/cluster-rke/ansible/create.yml
blob: fa24fb1d6c909e9875d1deccf4caccbf6eed75fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: Set up bastion node for ONAP Docker registry
  hosts: "control0"
  become: yes
  roles:
    - role: create_bastion
      destination: "{{ nexus }}"
- name: Add bastion information to the cluster nodes
  hosts: all
  become: yes
  tasks:
    - name: Add cluster hostnames to /etc/hosts file
      lineinfile:
        path: /etc/hosts
        line: "{{ hostvars['control0']['ansible_default_ipv4']['address'] }} {{ item }}"
      loop:
        - "nexus3.onap.org"