--- - name: Pulling elasticsearch image kolla_docker: action: "pull_image" common_options: "{{ docker_common_options }}" image: "{{ item.value.image }}" when: - inventory_hostname in groups[item.value.group] - item.value.enabled | bool with_dict: "{{ elasticsearch_services }}"