summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
Diffstat (limited to 'resources')
-rw-r--r--resources/metric/nDPI.yaml20
-rw-r--r--resources/roles/development-tools/tasks/main.yml23
2 files changed, 23 insertions, 20 deletions
diff --git a/resources/metric/nDPI.yaml b/resources/metric/nDPI.yaml
index 41bedc3d..b3e7259f 100644
--- a/resources/metric/nDPI.yaml
+++ b/resources/metric/nDPI.yaml
@@ -16,26 +16,6 @@
run_once: yes
delegate_to: localhost
-- name: installing nDPI dependencies if CentOS
- yum:
- name: '{{ item }}'
- state: present
- when: ansible_os_family == "RedHat"
- with_items:
- - git
- - gcc
- - patch
- - perl-Time-HiRes
- - autofconf
- - automake
- - libpcap-devel libtool
-
-- name: installing nDPI dependencies if Ubuntu
- apt:
- name: build-essential
- state: present
- when: ansible_os_family == "Debian"
-
- name: making nDPI temporary directory
file:
path: "{{ nDPI_cwd }}"
diff --git a/resources/roles/development-tools/tasks/main.yml b/resources/roles/development-tools/tasks/main.yml
new file mode 100644
index 00000000..5fcb19db
--- /dev/null
+++ b/resources/roles/development-tools/tasks/main.yml
@@ -0,0 +1,23 @@
+##############################################################################
+# Copyright (c) 2017 ZTE Corporation and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+- name: install development tools for Debian family
+ package:
+ name: build-essential
+ state: present
+ when: ansible_os_family == "Debian"
+
+- name: install development tools for RedHat family
+ yum:
+ name: '{{ item }}'
+ state: present
+ when: ansible_os_family == "RedHat"
+ with_items:
+ - "@Development tools"
+ - gcc-c++