blob: 4e4a5ad524d193ff1e31a9c849d4f1646c14c1c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
##############################################################################
# Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD 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
##############################################################################
---
#- hosts: [compute, tsn]
# sudo: yes
# tasks:
- name: "temporary disable supervisor vrouter"
# sudo: True
template:
src: "../../templates/install/override.j2"
dest: "/etc/init/supervisor-vrouter.override"
# - name: "install nova-compute for contrail package"
# apt:
# name: "nova-compute"
# when: install_nova
- name: "install contrail vrouter 3.13.0-40 package"
# apt:
# name: "contrail-vrouter-3.13.0-40-generic"
# when: ansible_kernel == "3.13.0-40-generic"
# sudo: True
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present force=yes"
with_items: vrouter_package
when: ansible_kernel == kernel_required
- name: "install contrail vrouter dkms package"
# apt:
# name: "contrail-vrouter-dkms"
# when: ansible_kernel != "3.13.0-40-generic"
# sudo: True
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present force=yes"
with_items: dkms_package
when: ansible_kernel != kernel_required
# - name: "install contrail vrouter common package"
# apt:
# name: "contrail-vrouter-common"
# - name: "install contrail nova vif package"
# apt:
# name: "contrail-nova-vif"
- name: "install contrail vrouter common & nova vif package"
# sudo: True
action: "{{ ansible_pkg_mgr }} name={{ item }} state=present"
with_items: compute_package | union(compute_package_noarch)
|