xci: Force sync time
[releng.git] / prototypes / xci / file / ha / configure-targethosts.yml
1 ---
2 - hosts: all
3   remote_user: root
4   tasks:
5     - name: add public key to host
6       copy:
7         src: ../file/authorized_keys
8         dest: /root/.ssh/authorized_keys
9
10 - hosts: controller
11   remote_user: root
12   vars_files:
13     - ../var/{{ ansible_os_family }}.yml
14     - ../var/flavor-vars.yml
15   roles:
16     # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros
17     - { role: configure-network, src: "../template/controller.interface.j2", dest: "/etc/network/interfaces" }
18     # we need to force sync time with ntp or the nodes will be out of sync timewise
19     - role: synchronize-time
20
21 - hosts: compute
22   remote_user: root
23   vars_files:
24     - ../var/{{ ansible_os_family }}.yml
25     - ../var/flavor-vars.yml
26   roles:
27     # TODO: this only works for ubuntu/xenial and need to be adjusted for other distros
28     - { role: configure-network, src: "../template/compute.interface.j2", dest: "/etc/network/interfaces" }
29     # we need to force sync time with ntp or the nodes will be out of sync timewise
30     - role: synchronize-time
31
32 - hosts: compute01
33   remote_user: root
34   # TODO: this role is for configuring NFS on xenial and adjustment needed for other distros
35   roles:
36     - role: configure-nfs