blob: 8d5a5648d3d0645c238bbb122dfd25b0c7bd6b37 [file] [log] [blame]
Stephane Barbariebcea2f42018-03-02 18:46:32 -05001# Note: When the target == "cluster" the installer
2# is running to install voltha in the cluster hosts.
3# Whe the target == "installer" the installer is being
4# created.
5- name: A .ssh directory for the voltha user exists
6 file:
7 #path: "{{ ansible_env['HOME'] }}/.ssh"
8 path: "{{ target_voltha_home }}/.ssh"
9 state: directory
10 owner: voltha
11 group: voltha
12 tags: [cluster_host]
13
14- name: known_hosts file is absent for the voltha user
15 file:
16 path: "{{ target_voltha_home }}/.ssh/known_hosts"
17 state: absent
18 tags: [cluster_host]
19
20- name: Known host checking is disabled
21 copy:
22 src: files/ssh_config
23 dest: "{{ target_voltha_home }}/.ssh/config"
24 owner: voltha
25 group: voltha
26 mode: 0600
27 tags: [cluster_host]
28
29- name: Cluster host keys are propagated to all hosts in the cluster
30 copy:
31 src: files/.keys
32 dest: "{{ target_voltha_home }}"
33 owner: voltha
34 group: voltha
35 mode: 0600
36 tags: [cluster_host]
37
38- name: A voltha directory under /var/log for voltha logs exists
39 file:
40 path: "/var/log/voltha/logging_volume"
41 state: directory
42 tags: [cluster_host]
43
44- name: Directories for voltha processes are created
45 file:
46 path: "{{ target_voltha_dir }}/{{ item }}"
47 state: directory
48 mode: 0755
49 owner: voltha
50 group: voltha
51 with_items:
52 - registry_data
53 - consul/data
54 - consul/config
55 when: target == "cluster"
56 tags: [cluster_host]