blob: 1756b708aa30ad7d4b4c8187170dbc5b240347a5 [file] [log] [blame]
Michal Zegan3a7e0732018-12-19 11:51:26 +01001---
2- name: Change ownership of nexus_data
3 file:
4 path: "{{ app_data_path }}/nexus_data"
5 owner: 200
6 group: 200
7 recurse: yes
8
9- name: Load nexus image
10 docker_image:
11 name: sonatype/nexus3
12 load_path: "{{ app_data_path }}/offline_data/docker_images_infra/sonatype_nexus3_latest.tar"
13 state: present
Michal Zegan8e5a7da2018-12-20 12:16:56 +010014 timeout: 120
Michal Zegan3a7e0732018-12-19 11:51:26 +010015
16- name: Create nexus network
17 docker_network:
18 name: nexus_network
19 state: present
20
21- name: Run nexus container
22 docker_container:
23 name: nexus
24 image: sonatype/nexus3
25 networks:
26 - name: nexus_network
27 volumes:
28 - "{{ app_data_path }}/nexus_data:/nexus-data:rw"
29 state: started
30 restart_policy: unless-stopped