blob: 1ec0adbcfe6ecae41c54480d2d6635a50f36dc07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
---
- name: Create configuration directory
file:
path: "{{ app_data_path }}/cfg"
state: directory
- name: Upload configuration to server
template:
src: nginx.conf.j2
dest: "{{ app_data_path }}/cfg/nginx.conf"
- name: Load nginx image
docker_image:
name: own_nginx
load_path: "{{ app_data_path }}/offline_data/docker_images_infra/own_nginx_latest.tar"
state: present
timeout: 120
- name: Create nexus network
docker_network:
name: nexus_network
state: present
- name: Start nginx
docker_container:
name: own_nginx
image: own_nginx
networks:
- name: nexus_network
ports: "{{ nginx.ports }}"
volumes: "{{ nginx.volumes }}"
state: started
restart_policy: unless-stopped
|