aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/install_dpdk_shared/tasks
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-09-28 21:45:42 -0700
committerMaciej Skrocki <maciej.skrocki@intel.com>2017-09-29 22:01:28 +0000
commit862546eb151b24c10d26f20bc45ee572679e3d07 (patch)
treefd4fdef55b492f7dd8102ab2d23f3eec43aa2250 /ansible/roles/install_dpdk_shared/tasks
parent9cefa935afa908cede3ab1bd8b6ca91f1e36ad2d (diff)
replace ansible modules
Change-Id: Ia7c1ce781075142910a6c618a9a23f34a710dfe9 Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Diffstat (limited to 'ansible/roles/install_dpdk_shared/tasks')
-rw-r--r--ansible/roles/install_dpdk_shared/tasks/main.yml23
1 files changed, 8 insertions, 15 deletions
diff --git a/ansible/roles/install_dpdk_shared/tasks/main.yml b/ansible/roles/install_dpdk_shared/tasks/main.yml
index 6ed9f3bfc..65954be04 100644
--- a/ansible/roles/install_dpdk_shared/tasks/main.yml
+++ b/ansible/roles/install_dpdk_shared/tasks/main.yml
@@ -42,13 +42,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_shared_path }}"
- target: config
- params:
- T: "{{ dpdk_make_arch }}"
- O: "{{ dpdk_make_arch }}"
- extra_args: "-j {{ ansible_processor_vcpus }}"
environment:
RTE_KERNELDIR: "{{ RTE_KERNELDIR }}"
@@ -89,26 +85,23 @@
regexp: '^CONFIG_RTE_EAL_PMD_PATH=""'
line: 'CONFIG_RTE_EAL_PMD_PATH="{{ dpdk_pmd_path }}"'
-- my_make:
+ # no T= target for clean
+- command: make -j {{ ansible_processor_vcpus }} clean O={{ dpdk_make_arch }}
+ args:
chdir: "{{ dpdk_shared_path }}"
- target: clean
- params:
- # no T= target for clean
- O: "{{ dpdk_make_arch }}"
- extra_args: "-j {{ ansible_processor_vcpus }}"
environment:
RTE_KERNELDIR: "{{ RTE_KERNELDIR }}"
# TODO: disable ASLR
-- my_make:
+- command: make -j {{ ansible_processor_vcpus }}
+ args:
chdir: "{{ dpdk_shared_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_shared_path }}/{{ dpdk_make_arch}}"
# target: install
# params: "T={{ RTE_TARGET }}"