From 37a6e040fddb9830b03d291b424c944113ebb858 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Sat, 12 Oct 2024 21:08:39 +0200 Subject: [PATCH] chore(vmagent): add comparison policy for docker containers --- roles/vmagent/defaults/main/container.yml | 4 ++++ roles/vmagent/tasks/deploy-docker.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/roles/vmagent/defaults/main/container.yml b/roles/vmagent/defaults/main/container.yml index 7cbf4e5..c71a93d 100644 --- a/roles/vmagent/defaults/main/container.yml +++ b/roles/vmagent/defaults/main/container.yml @@ -53,3 +53,7 @@ vmagent_container_env: ~ vmagent_container_merged_env: >-2 {{ (vmagent_container_base_env | default({}, true)) | combine(vmagent_container_env | default({})) }} +vmagent_container_comparisons: + env: allow_more_present + image: strict + labels: allow_more_present diff --git a/roles/vmagent/tasks/deploy-docker.yml b/roles/vmagent/tasks/deploy-docker.yml index 386a694..128d768 100644 --- a/roles/vmagent/tasks/deploy-docker.yml +++ b/roles/vmagent/tasks/deploy-docker.yml @@ -25,4 +25,5 @@ dns_servers: "{{ vmagent_container_dns_servers | default(omit, true) }}" network_mode: "{{ vmagent_container_network_mode | default(omit, true) }}" restart_policy: "{{ vmagent_container_restart_policy | default(omit, true) }}" + comparisons: "{{ vmagent_container_comparisons | default(omit, true) }}" state: "{{ vmagent_container_state }}"