summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/open-contrail/tasks/install/install-compute.yml
blob: 6c85ce558eceb7eb879120f75c829b32d4b6f8f0 (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
---
#- 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"
  with_items: vrouter_packages
  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"
  with_items: dkms_packages
  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_packages | union(compute_packages_noarch)