summaryrefslogtreecommitdiffstats
path: root/roles/nuage_common/tasks/main.yml
blob: ec42518ffdc8eb60a6926cdf7133c0c71c02250a (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
---
- name: Set the Nuage plugin openshift directory fact to handle Atomic host install
  set_fact:
    nuage_node_plugin_dir: /var/usr/share/vsp-openshift
  when: openshift_is_atomic | bool

- name: Set the Nuage CNI network config directory fact to handle Atomic host install
  set_fact:
    nuage_node_cni_netconf_dir: /var/etc/cni/net.d/
  when: openshift_is_atomic | bool

- name: Set the Nuage CNI binary directory fact to handle Atomic host install
  set_fact:
    nuage_node_cni_bin_dir: /var/opt/cni/bin/
  when: openshift_is_atomic | bool

- name: Assure CNI plugin config dir exists before daemon set install
  become: yes
  file: path="{{ nuage_node_plugin_dir }}" state=directory

- name: Assure CNI netconf directory exists before daemon set install
  become: yes
  file: path="{{ nuage_node_cni_netconf_dir }}" state=directory

- name: Assure CNI plugin binary directory exists before daemon set install
  become: yes
  file: path="{{ nuage_node_cni_bin_dir }}" state=directory