diff options
-rw-r--r-- | ansible/roles/nginx/tasks/main.yml | 3 | ||||
-rw-r--r-- | ansible/test/roles/prepare-nginx/tasks/main.yml | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ansible/roles/nginx/tasks/main.yml b/ansible/roles/nginx/tasks/main.yml index 54a0c818..7798f2ff 100644 --- a/ansible/roles/nginx/tasks/main.yml +++ b/ansible/roles/nginx/tasks/main.yml @@ -14,6 +14,7 @@ name: "{{ nginx_server_image }}" load_path: "{{ infra_images_path }}/{{ nginx_server_image_tar }}" state: present + source: load timeout: 120 - name: Create nexus network @@ -27,7 +28,9 @@ image: "{{ nginx_server_image }}" networks: - name: nexus_network + network_mode: default ports: "{{ nginx.ports }}" volumes: "{{ nginx.volumes }}" state: started restart_policy: unless-stopped + container_default_behavior: compatibility diff --git a/ansible/test/roles/prepare-nginx/tasks/main.yml b/ansible/test/roles/prepare-nginx/tasks/main.yml index 3cd93990..820f5cc8 100644 --- a/ansible/test/roles/prepare-nginx/tasks/main.yml +++ b/ansible/test/roles/prepare-nginx/tasks/main.yml @@ -11,7 +11,9 @@ - name: Build nginx docker image delegate_to: localhost docker_image: - path: ../../../../../build/creating_data/create_nginx_image/ + build: + path: ../../../../../build/creating_data/create_nginx_image/ + source: build name: own_nginx tag: 2.0.0 @@ -21,6 +23,7 @@ name: own_nginx tag: 2.0.0 archive_path: /tmp/nginx.tar + source: local - name: Copy nginx image to node copy: |