summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/playbooks/configure-sriov.yml
diff options
context:
space:
mode:
authorRitu Sood <Ritu.Sood@intel.com>2019-11-15 00:51:09 +0000
committerGerrit Code Review <gerrit@onap.org>2019-11-15 00:51:09 +0000
commitf168ebb73d8dad0e1c75747cbc9b0a0de8fc2357 (patch)
tree2be8f13053ba812f3972defb4ce49b0e1bb0860e /kud/deployment_infra/playbooks/configure-sriov.yml
parentc58a35989f731a0d1c8ec75e85480873da4b1c35 (diff)
parentf18b84fb5cb2bbb7e95e346fc74e84368ffcc78e (diff)
Merge "Updating sriov playbook to meet requirements of updated device"
Diffstat (limited to 'kud/deployment_infra/playbooks/configure-sriov.yml')
-rw-r--r--kud/deployment_infra/playbooks/configure-sriov.yml19
1 files changed, 6 insertions, 13 deletions
diff --git a/kud/deployment_infra/playbooks/configure-sriov.yml b/kud/deployment_infra/playbooks/configure-sriov.yml
index 8ba6cf48..45f276c6 100644
--- a/kud/deployment_infra/playbooks/configure-sriov.yml
+++ b/kud/deployment_infra/playbooks/configure-sriov.yml
@@ -12,25 +12,18 @@
- hosts: localhost
become: yes
- pre_tasks:
- - block:
- - name: "End play if SRIOV is False"
- debug:
- msg: "SRIOV option not available, ending play"
- - meta: end_play
- when: SRIOV_NODE == "False"
tasks:
- debug:
var: SRIOV_NODE
- name: Apply Multus
shell: "/usr/local/bin/kubectl apply -f {{ playbook_dir }}/../images/multus-daemonset.yml"
- when: SRIOV_NODE==True
+ when: SRIOV_NODE
- name: Apply SRIOV CNI
- shell: "/usr/local/bin/kubectl apply -f {{ playbook_dir }}/../images/sriov-cni.yaml"
- when: SRIOV_NODE==True
+ shell: "/usr/local/bin/kubectl apply -f {{ playbook_dir }}/../images/sriov-cni.yml"
+ when: SRIOV_NODE
- name: Apply SRIOV DaemonSet
- shell: "/usr/local/bin/kubectl apply -f {{ playbook_dir }}/../images/sriov-daemonset.yaml"
- when: SRIOV_NODE==True
+ shell: "/usr/local/bin/kubectl apply -f {{ playbook_dir }}/../images/sriov-daemonset.yml"
+ when: SRIOV_NODE
- name: Apply SRIOV Network Attachment definition
shell: "/usr/local/bin/kubectl apply -f {{ playbook_dir }}/sriov-nad.yml"
- when: SRIOV_NODE==True
+ when: SRIOV_NODE