Zack Williams | adaa70c | 2017-07-17 09:54:43 -0700 | [diff] [blame] | 1 | --- |
| 2 | # mavenrepo-install/tasks/main.yml |
| 3 | |
| 4 | - name: Create mavenrepo directory |
| 5 | become: yes |
| 6 | file: |
| 7 | path: "{{ head_mavenrepo_dir }}" |
| 8 | state: directory |
| 9 | owner: "{{ ansible_user_id }}" |
| 10 | group: "{{ ansible_user_gid }}" |
| 11 | mode: 0755 |
| 12 | |
| 13 | - name: Create docker-compose file for mavenrepo |
| 14 | template: |
| 15 | src: docker-compose.yml.j2 |
| 16 | dest: "{{ head_mavenrepo_dir }}/docker-compose.yml" |
| 17 | owner: "{{ ansible_user_id }}" |
| 18 | group: "{{ ansible_user_gid }}" |
| 19 | mode: 0644 |
| 20 | |
| 21 | - name: Start mavenrepo for onos-apps |
| 22 | docker_service: |
| 23 | project_name: "mavenrepo" |
| 24 | project_src: "{{ head_mavenrepo_dir }}" |
| 25 | |