summaryrefslogtreecommitdiffstats
path: root/ansible/roles/install_dpdk
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-09-28 21:45:42 -0700
committerRoss Brattain <ross.b.brattain@intel.com>2017-09-30 01:23:07 -0700
commit139480d2265d23729162054812988b0d9eca94d9 (patch)
tree34fe6e02689ffc4d4ae74f95a11a12a805d7190f /ansible/roles/install_dpdk
parentc3c086c179c35e0b27bdfe75ac3366f4fa5d6ceb (diff)
replace ansible modules
Change-Id: Ia7c1ce781075142910a6c618a9a23f34a710dfe9 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'ansible/roles/install_dpdk')
-rw-r--r--ansible/roles/install_dpdk/tasks/main.yml15
1 files changed, 6 insertions, 9 deletions
diff --git a/ansible/roles/install_dpdk/tasks/main.yml b/ansible/roles/install_dpdk/tasks/main.yml
index e189eb629..01ad4baf1 100644
--- a/ansible/roles/install_dpdk/tasks/main.yml
+++ b/ansible/roles/install_dpdk/tasks/main.yml
@@ -36,13 +36,9 @@
set_fact:
RTE_KERNELDIR: "/lib/modules/{{ dpdk_kernel }}/build"
-- my_make:
+- command: make -j {{ ansible_processor_vcpus }} config T={{ dpdk_make_arch }} O={{ dpdk_make_arch }}
+ args:
chdir: "{{ dpdk_path }}"
- target: config
- params:
- T: "{{ dpdk_make_arch }}"
- O: "{{ dpdk_make_arch }}"
- extra_args: "-j {{ ansible_processor_vcpus }}"
environment:
RTE_KERNELDIR: "{{ RTE_KERNELDIR }}"
@@ -85,14 +81,15 @@
# TODO: disable ASLR
-- my_make:
+- name: make dpdk
+ command: make -j {{ ansible_processor_vcpus }}
+ args:
chdir: "{{ dpdk_path }}/{{ dpdk_make_arch}}"
- extra_args: "-j {{ ansible_processor_vcpus }}"
environment:
RTE_KERNELDIR: "{{ RTE_KERNELDIR }}"
#- name: make install DPDK into /usr for collectd and other programs
-# my_make:
+# make:
# chdir: "{{ dpdk_path }}/{{ dpdk_make_arch}}"
# target: install
# params: "T={{ RTE_TARGET }}"