aboutsummaryrefslogtreecommitdiffstats
path: root/resources/roles
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2017-04-20 03:46:43 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-04-20 03:46:43 +0000
commit48770903149a800d5cc9ddecc490001ffd9688a8 (patch)
treeb42d46ab4dfecea90e2d3ebec89d3fb191f3a8c5 /resources/roles
parent0e64642d1a62b4b0f319d2cfa0baa011b07c7520 (diff)
parentac8c825582a56bba3a1d1c966322f80aa93fe137 (diff)
Merge "Use ansible roles to setup development tools"
Diffstat (limited to 'resources/roles')
-rw-r--r--resources/roles/development-tools/tasks/main.yml23
1 files changed, 23 insertions, 0 deletions
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++