aboutsummaryrefslogtreecommitdiffstats
path: root/ansible/roles/infra_install_dependencies/tasks/Debian.yml
diff options
context:
space:
mode:
authorRodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>2018-08-30 16:19:23 +0000
committerGerrit Code Review <gerrit@opnfv.org>2018-08-30 16:19:23 +0000
commita8706c3b18f7f70798a0b20b1ec15ad496626784 (patch)
tree988dbee4ded7eab4f96207c9f30d15e203853d8d /ansible/roles/infra_install_dependencies/tasks/Debian.yml
parent7373f7063e234714fc14e1c59b1b24d018e632c0 (diff)
parent7e507932a091c0ab7049efc907ee2d0857aadb21 (diff)
Merge "Adopt infra_deploy to spawn VM on LTS Ubuntu 18"
Diffstat (limited to 'ansible/roles/infra_install_dependencies/tasks/Debian.yml')
-rw-r--r--ansible/roles/infra_install_dependencies/tasks/Debian.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/ansible/roles/infra_install_dependencies/tasks/Debian.yml b/ansible/roles/infra_install_dependencies/tasks/Debian.yml
new file mode 100644
index 000000000..9f4dc1046
--- /dev/null
+++ b/ansible/roles/infra_install_dependencies/tasks/Debian.yml
@@ -0,0 +1,34 @@
+# Copyright (c) 2018 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: Update repositories
+ apt:
+ update_cache: yes
+
+- name: Install core packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items:
+ - python-libvirt
+ - genisoimage
+ when: ansible_distribution_major_version|int == 16
+
+- name: Install core packages
+ action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
+ with_items:
+ - python-pip
+ - python-libvirt
+ - python-lxml
+ - python-netaddr
+ - genisoimage
+ when: ansible_distribution_major_version|int >= 18