summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-07-13 08:59:26 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-07-13 08:59:26 +0000
commitebe31fb15ed923401a7a97b25ca68d3e05e83d86 (patch)
tree119295a47d223e5223058fb5927846eaee6c5f80 /ansible
parent8d4aeadbd2a9dd7f0b8371dc53de5f4b372800b0 (diff)
parenta89e1737d628885f6a208eac5a4d6c22327011ae (diff)
Merge ""install_dpdk" ansible role fails if DPDK version has revision number"
Diffstat (limited to 'ansible')
-rw-r--r--ansible/roles/install_dpdk/tasks/main.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/ansible/roles/install_dpdk/tasks/main.yml b/ansible/roles/install_dpdk/tasks/main.yml
index 5bcfb50b1..f89a43cae 100644
--- a/ansible/roles/install_dpdk/tasks/main.yml
+++ b/ansible/roles/install_dpdk/tasks/main.yml
@@ -114,9 +114,16 @@
path: "{{ INSTALL_BIN_PATH }}"
state: directory
+- set_fact:
+ major: "{{ dpdk_version.split('.')[0] }}"
+ minor: "{{ dpdk_version.split('.')[1] }}"
+
+- set_fact:
+ major_minor_version: "{{ major }}.{{ minor }}"
+
- name: copy dpdk-devbind.py to correct location
copy:
- src: "{{ dpdk_devbind_usertools if dpdk_version|float >= 17.02 else dpdk_devbind_tools }}"
+ src: "{{ dpdk_devbind_usertools if major_minor_version|float >= 17.02 else dpdk_devbind_tools }}"
dest: "{{ INSTALL_BIN_PATH }}/dpdk-devbind.py"
remote_src: yes
force: yes