- install_rabbitmq
     - download_intel_cmt_cat
     - install_intel_cmt_cat
-    - download_yajl
-    - install_yajl
     - download_collectd
     - install_collectd
 
 
+++ /dev/null
----
-yajl_url: "https://github.com/yajl/yajl.git"
-yajl_dest: "{{ clone_dest }}/yajl"
-yajl_version: "master"
 
+++ /dev/null
-# Copyright (c) 2017 Intel Corporation.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
----
-#- debug:
-#    var: yajl_version
-#    verbosity: 2
-
-- name: fetch yajl
-  git:
-    repo: "{{ yajl_url }}"
-    dest: "{{ yajl_dest }}"
-    version: "{{ yajl_version }}"
-    accept_hostkey: yes
-    recursive: no
-    force: yes
-
-- set_fact:
-    yajl_path: "{{ yajl_dest }}"
 
     chdir: "{{ collectd_path }}"
 
 - name: build collectd
-  shell: "./configure --with-libpqos=/usr/ --with-libdpdk={{ dpdk_shared_path }} --with-libyajl=/usr/local --enable-debug --enable-dpdkstat --enable-virt --enable-ovs_stats --prefix={{ INSTALL_BIN_PATH }}/collectd |& tee collectd-configure.txt"
+  shell: "./configure --with-libpqos=/usr/ --with-libdpdk={{ dpdk_shared_path }} --with-libyajl=/usr/ --enable-debug --enable-dpdkstat --enable-virt --enable-ovs_stats --prefix={{ INSTALL_BIN_PATH }}/collectd |& tee collectd-configure.txt"
   args:
     executable: /bin/bash
     chdir: "{{ collectd_path }}"
 
     - rabbitmq-server
     - cmake
     - libvirt-dev
+    - libyajl-dev
   RedHat:
     - flex
     - bison
     - librabbitmq-devel
     - libtool-ltdl-devel
     - libvirt-devel
+    - yajl-devel
 
 
+++ /dev/null
-# Copyright (c) 2017 Intel Corporation
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
----
-
-- name: Install extra build dependencies
-  action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
-  with_items: "{{ yajl_build_dependencies[ansible_os_family] }}"
-
-- name: configure
-  command: ./configure
-  args:
-    chdir: "{{ yajl_path }}"
-
-- name: "make yajl"
-  make:
-    chdir: "{{ yajl_path }}"
-
-- name: "make install yajl"
-  make:
-    chdir: "{{ yajl_path }}"
-    target: install
 
+++ /dev/null
-# Copyright (c) 2017 Intel Corporation
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#      http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
----
-yajl_build_dependencies:
-  Debian:
-    - flex
-    - bison
-    - build-essential
-    - pkg-config
-    - automake
-    - autotools-dev
-    - libltdl-dev
-    - librabbitmq-dev
-    - rabbitmq-server
-    - cmake
-    - libvirt-dev
-  RedHat:
-    - flex
-    - bison
-    - pkgconfig
-    - automake
-    - cmake
-    - rabbitmq-server
-    - librabbitmq-devel
-    - libtool-ltdl-devel
-    - libvirt-devel
-
 
     - install_rabbitmq
     - download_intel_cmt_cat
     - install_intel_cmt_cat
-    - download_yajl
-    - install_yajl
     - download_collectd
     - install_collectd
 
     - install_rabbitmq
     - download_intel_cmt_cat
     - install_intel_cmt_cat
-    - download_yajl
-    - install_yajl
     - download_collectd
     - install_collectd