summaryrefslogtreecommitdiffstats
path: root/xci/installer/kubespray/playbooks/configure-targethosts.yml
blob: 7e29025b6831abf29124347592faafb3afbb201b (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
---
- hosts: all
  remote_user: root
  tasks:
    - name: add public key to host
      copy:
        src: "{{ XCI_PATH }}/xci/files/authorized_keys"
        dest: /root/.ssh/authorized_keys
    - name: install dbus and ptyhon-netaddr
      apt:
        name: "{{item}}"
        update_cache: yes
      with_items: "{{ kube_require_packages }}"

- hosts: kube-master
  remote_user: root
  vars_files:
    - "{{ XCI_PATH }}/xci/var/opnfv.yml"
  pre_tasks:
    - name: Load distribution variables
      include_vars:
        file: "{{ XCI_PATH }}/xci/var/{{ ansible_os_family }}.yml"
  roles:
    - role: "keepalived"
      when:  XCI_FLAVOR == 'ha'
    - role: "haproxy_server"
      haproxy_service_configs: "{{ haproxy_default_services}}"
      when:  XCI_FLAVOR == 'ha'