1 ##############################################################################
2 # Copyright (c) 2016 HUAWEI TECHNOLOGIES CO.,LTD and others.
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 ##############################################################################
10 - name: opendaylight system file
12 src: "{{ service_file.src }}"
13 dest: "{{ service_file.dst }}"
16 - name: set l3 fwd enable in custom.properties
18 src: custom.properties
19 dest: "{{ odl_home }}/etc/custom.properties"
23 when: odl_l3_agent == "Enable"
25 - name: create karaf config
27 src: org.apache.karaf.features.cfg.Debian
28 dest: "{{ odl_home }}/etc/org.apache.karaf.features.cfg"
32 when: ansible_os_family == "Debian"
34 - name: create karaf config
36 src: org.apache.karaf.features.cfg.Redhat
37 dest: "{{ odl_home }}/etc/org.apache.karaf.features.cfg"
41 when: ansible_os_family == "RedHat"
43 - name: create tomcat config
45 src: tomcat-server.xml
46 dest: "{{ odl_home }}/configuration/tomcat-server.xml"
48 - name: create tomcat config
51 dest: "{{ odl_home }}/etc/jetty.xml"