8d71606f4fb1f46ad6400a21439af0400f4a084f
[compass4nfv.git] /
1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 ---
10 - name: opendaylight system file
11   copy:
12     src: "{{ service_file.src }}"
13     dest: "{{ service_file.dst }}"
14     mode: 0755
15
16 - name: set l3 fwd enable in custom.properties
17   template:
18     src: custom.properties
19     dest: "{{ odl_home }}/etc/custom.properties"
20     owner: odl
21     group: odl
22     mode: 0775
23   when: odl_l3_agent == "Enable"
24
25 - name: create karaf config
26   template:
27     src: org.apache.karaf.features.cfg.Debian
28     dest: "{{ odl_home }}/etc/org.apache.karaf.features.cfg"
29     owner: odl
30     group: odl
31     mode: 0775
32   when: ansible_os_family == "Debian"
33
34 - name: create karaf config
35   template:
36     src: org.apache.karaf.features.cfg.Redhat
37     dest: "{{ odl_home }}/etc/org.apache.karaf.features.cfg"
38     owner: odl
39     group: odl
40     mode: 0775
41   when: ansible_os_family == "RedHat"
42
43 - name: create tomcat config
44   template:
45     src: tomcat-server.xml
46     dest: "{{ odl_home }}/configuration/tomcat-server.xml"
47
48 - name: create tomcat config
49   template:
50     src: jetty.xml
51     dest: "{{ odl_home }}/etc/jetty.xml"
52
53