summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-13 14:41:10 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2021-04-22 08:49:24 +0200
commit6e8f21c46fcd1aca7b9addb7384c08041480cb1a (patch)
tree527b03e92a5be2f8953e004e6c83bbcd52aa8b0c
parenta9fa654a7260c84a9035a7d0781d99aa85420404 (diff)
[ANSIBLE 3.2.0] Upgrade 'nexus' role's tasks to ansible 3.2.0
Change-Id: Ibeaea4b3b627c356521b4c847d56eeb922a8cca1 Issue-ID: OOM-2722 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r--ansible/roles/nexus/tasks/insert-images.yml1
-rw-r--r--ansible/roles/nexus/tasks/install.yml3
-rw-r--r--ansible/test/roles/prepare-nexus/tasks/main.yml1
3 files changed, 5 insertions, 0 deletions
diff --git a/ansible/roles/nexus/tasks/insert-images.yml b/ansible/roles/nexus/tasks/insert-images.yml
index 404889f4..bf1a7fa6 100644
--- a/ansible/roles/nexus/tasks/insert-images.yml
+++ b/ansible/roles/nexus/tasks/insert-images.yml
@@ -17,5 +17,6 @@
tag: "{{ runtime_images[component].tag }}"
push: true
load_path: "{{ item.path }}"
+ source: load
timeout: 120
changed_when: false # for idempotence
diff --git a/ansible/roles/nexus/tasks/install.yml b/ansible/roles/nexus/tasks/install.yml
index 6ac2b131..c9159086 100644
--- a/ansible/roles/nexus/tasks/install.yml
+++ b/ansible/roles/nexus/tasks/install.yml
@@ -10,6 +10,7 @@
docker_image:
name: "{{ nexus3_image }}"
load_path: "{{ infra_images_path }}/{{ nexus3_image_tar }}"
+ source: load
state: present
timeout: 120
@@ -24,11 +25,13 @@
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:
diff --git a/ansible/test/roles/prepare-nexus/tasks/main.yml b/ansible/test/roles/prepare-nexus/tasks/main.yml
index 951bc28e..0c5994dc 100644
--- a/ansible/test/roles/prepare-nexus/tasks/main.yml
+++ b/ansible/test/roles/prepare-nexus/tasks/main.yml
@@ -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