blob: 424fa20be4c65f596b9750129d451753264fbb32 [file] [log] [blame]
Matteo Scandolo3896c472017-08-01 13:31:42 -07001
2# Copyright 2017-present Open Networking Foundation
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16
Zack Williamsadaa70c2017-07-17 09:54:43 -070017---
18# mavenrepo-install/tasks/main.yml
19
20- name: Create mavenrepo directory
21 become: yes
22 file:
23 path: "{{ head_mavenrepo_dir }}"
24 state: directory
25 owner: "{{ ansible_user_id }}"
26 group: "{{ ansible_user_gid }}"
27 mode: 0755
28
29- name: Create docker-compose file for mavenrepo
30 template:
31 src: docker-compose.yml.j2
32 dest: "{{ head_mavenrepo_dir }}/docker-compose.yml"
33 owner: "{{ ansible_user_id }}"
34 group: "{{ ansible_user_gid }}"
35 mode: 0644
36
37- name: Start mavenrepo for onos-apps
38 docker_service:
39 project_name: "mavenrepo"
40 project_src: "{{ head_mavenrepo_dir }}"
41