diff options
author | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-19 14:52:55 +0800 |
---|---|---|
committer | Yujun Zhang <zhang.yujunz@zte.com.cn> | 2017-04-20 11:33:38 +0800 |
commit | ac8c825582a56bba3a1d1c966322f80aa93fe137 (patch) | |
tree | 1ac7df551b1cda1d193d8d7dd6028f044352803f /resources/roles/development-tools/tasks/main.yml | |
parent | 88f4e7f34bda4fbfc4ee6d513ffbec772037be1f (diff) |
Use ansible roles to setup development tools
Change-Id: I897773edf8dcacf08e67fa3eb999c4c10ba22805
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
Diffstat (limited to 'resources/roles/development-tools/tasks/main.yml')
-rw-r--r-- | resources/roles/development-tools/tasks/main.yml | 23 |
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++ |