diff --git a/ansible/inventory/group_vars/all/kolla b/ansible/inventory/group_vars/all/kolla
index a6fefc17309b671cabaf953aa04da75133edaff2..e34613f3fc86678296930857360b368c63854497 100644
--- a/ansible/inventory/group_vars/all/kolla
+++ b/ansible/inventory/group_vars/all/kolla
@@ -216,9 +216,9 @@ overcloud_container_image_regex_map:
     enabled: "{{ kolla_enable_nova | bool }}"
   - regex: ^octavia
     enabled: "{{ kolla_enable_octavia | bool }}"
-  - regex: opensearch
+  - regex: ^opensearch$
     enabled: "{{ kolla_enable_opensearch | bool }}"
-  - regex: opensearch-dashboards
+  - regex: ^opensearch-dashboards$
     enabled: "{{ kolla_enable_opensearch_dashboards | bool }}"
   - regex: ^openvswitch
     enabled: "{{ kolla_enable_openvswitch | bool }}"