--- /dev/null
+##############################################################################
+# 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: Installing software properties common
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - software-properties-common
+
+- name: Adding ubuntu backport main repo
+ apt_repository:
+ repo: "{{ item }}"
+ state: present
+ with_items:
+ - deb http://archive.ubuntu.com/ubuntu/ {{ansible_distribution_release}}-backports main restricted universe multiverse
+ - deb http://archive.ubuntu.com/ubuntu/ {{ansible_distribution_release}} main restricted universe multiverse
+
+- name: Installing required software
+ apt:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - build-essentials
+ - python-selinux
+ - libpcap-dev
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
-- name: install development tools for Debian family
- package:
- name: build-essential
- state: present
+---
+- include: redhat.yml
+ when: ansible_os_family == "RedHat"
+
+- include: debian.yml
when: ansible_os_family == "Debian"
-- name: install development tools for RedHat family
- yum:
- name: '{{ item }}'
+- name: Installing required packages
+ package:
+ name: "{{ item }}"
state: present
- when: ansible_os_family == "RedHat"
with_items:
- - "@Development tools"
- - gcc-c++
+ - rsync
+ - git
-#############################################################################
+##############################################################################
# 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
-#############################################################################
+##############################################################################
---
-dependencies:
- - { role: development-tools }
+- name: Installing epel release
+ yum:
+ name: epel-release
+ state: present
+
+- name: Installing required packages
+ yum:
+ name: "{{ item }}"
+ state: present
+ with_items:
+ - "@Development tools"
+ - gcc-c++
+ - libselinux-python
+ - libpcap-devel
delegate_to: localhost
roles:
- - development-tools
+ - qtip-deps
tags: [setup]
# when looping. Instead of calling the module once per with_ item, the
# module is called once with all items at once. Currently this only works
# under limited circumstances, and only with parameters named 'name'.
-#squash_actions = apk,apt,dnf,homebrew,pacman,pkgng,yum,zypper
+squash_actions = apk,apt,dnf,homebrew,pacman,pkgng,yum,zypper
# prevents logging of task data, off by default
#no_log = False
+++ /dev/null
-#############################################################################
-# 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
-#############################################################################
-
----
-dependencies:
- - { role: development-tools }
+++ /dev/null
-#############################################################################
-# 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
-#############################################################################
-
----
-dependencies:
- - { role: development-tools }
# opnfv environment
- installer: fuel # <fuel|apex>
- installer_master_host: f5 # make sure you can login it with key authentication
+ installer: apex # <fuel|apex>
+ installer_master_host: apex-virtual # make sure you can login it with key authentication
# set testapi_url to enable reportint to testapi