Index files for Kalamar-Plugin-ExternalResources
Change-Id: I621e3dea2ef174fe6056b3c0428974435634ac57
diff --git a/deploy-kalamar-plugin-externalresources.yml b/deploy-kalamar-plugin-externalresources.yml
index 64aebcc..95d8322 100644
--- a/deploy-kalamar-plugin-externalresources.yml
+++ b/deploy-kalamar-plugin-externalresources.yml
@@ -6,7 +6,7 @@
run_once: true
tasks:
- name: Save docker image
- local_action: ansible.builtin.command docker save korap/kalamar-plugin-externalresources:latest -o ./kalamar-plugin-externalresources-latest.tar
+ local_action: ansible.builtin.command docker save {{ external_image }} -o ./kalamar-plugin-externalresources-latest.tar
- name: Copy docker image to hosts
ansible.builtin.copy:
@@ -30,6 +30,7 @@
- name: Gracefully stop and remove old docker container, if existing
community.docker.docker_container:
+ image: "{{ external_image }}"
state: "absent"
name: "{{ external_container_name }}"
recreate: true
@@ -39,7 +40,7 @@
- name: Restart docker container
community.docker.docker_container:
- image: korap/kalamar-plugin-externalresources:latest
+ image: "{{ external_image }}"
restart_policy: "unless-stopped"
pull: false
name: "{{ external_container_name }}"
@@ -54,6 +55,6 @@
source: "{{ external_path }}/.env"
target: "/.env"
ports:
- - "5722:5722"
+ - "{{ external_port }}"
comparisons:
image: ignore # do not restart containers with older versions of the image