--- - name: Pulling OpenSM container image docker_image: name: "{{ item.value.image }}" repository: "{{ item.value.image }}" state: present with_dict: "{{ opensm_services }}" when: - item.value.enabled - opensm_action != 'destroy'