summaryrefslogtreecommitdiffstats
path: root/roles/nuage_common/tasks/main.yml
blob: 6c8c9f8d29f53052d285f17b3e6bafdc74fcdd77 (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.common.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.common.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.common.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