summaryrefslogtreecommitdiffstats
path: root/xci/playbooks/configure-targethosts.yml
blob: 88da13122d30b0012fb757e7ab9b607a58569f5c (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
---
- hosts: all
  remote_user: root
  tasks:
    - name: add public key to host
      copy:
        src: ../file/authorized_keys
        dest: /root/.ssh/authorized_keys

- hosts: controller
  remote_user: root
  vars_files:
    - ../var/{{ ansible_os_family }}.yml
    - ../var/flavor-vars.yml
  roles:
    - role: configure-network
    # we need to force sync time with ntp or the nodes will be out of sync timewise
    - role: synchronize-time

- hosts: compute
  remote_user: root
  vars_files:
    - ../var/{{ ansible_os_family }}.yml
    - ../var/flavor-vars.yml
  roles:
    - role: configure-network
    # we need to force sync time with ntp or the nodes will be out of sync timewise
    - role: synchronize-time

- hosts: compute00
  remote_user: root
  # TODO: this role is for configuring NFS on xenial and adjustment needed for other distros
  roles:
    - role: configure-nfs