[ANSIBLE 3.2.0] Upgrade 'nexus' role's tasks to ansible 3.2.0 80/120480/3
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Tue, 13 Apr 2021 12:41:10 +0000 (14:41 +0200)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Thu, 15 Apr 2021 09:16:21 +0000 (11:16 +0200)
Change-Id: Ibeaea4b3b627c356521b4c847d56eeb922a8cca1
Issue-ID: OOM-2722
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/roles/nexus/tasks/insert-images.yml
ansible/roles/nexus/tasks/install.yml
ansible/test/roles/prepare-nexus/tasks/main.yml

index 404889f..bf1a7fa 100644 (file)
@@ -17,5 +17,6 @@
         tag: "{{ runtime_images[component].tag }}"
         push: true
         load_path: "{{ item.path }}"
+        source: load
         timeout: 120
       changed_when: false  # for idempotence
index 6ac2b13..c915908 100644 (file)
@@ -10,6 +10,7 @@
   docker_image:
     name: "{{ nexus3_image }}"
     load_path: "{{ infra_images_path }}/{{ nexus3_image_tar }}"
+    source: load
     state: present
     timeout: 120
 
     image: "{{ nexus3_image }}"
     networks:
       - name: nexus_network
+    network_mode: default
     published_ports: "{{ nexus3_published_ports }}"
     volumes:
       - "{{ app_data_path }}/nexus_data:/nexus-data:rw"
     state: started
     restart_policy: unless-stopped
+    container_default_behavior: compatibility
 
 - name: Wait for nexus to come up
   uri:
index 951bc28..0c5994d 100644 (file)
@@ -24,6 +24,7 @@
     name: "{{ item.name }}"
     tag: "{{ item.tag | default('latest') }}"  # Tag given in 'name' has precedence over the one declared here
     archive_path: "{{ item.archive_path }}"
+    source: pull
   loop: "{{ prepare_nexus_images }}"
 
 - name: Copy docker images to node