- name: Build image hosts: all vars_files: - vars/main.yml gather_facts: false tasks: - name: Build image ansible.builtin.include_role: name: role_build_container_image vars: image: "{{ item }}" with_items: - repo_url: "{{ HTTPS_REPO_URL }}" repo_name: "{{ REPO_NAME }}" name: "{{ IMAGE_NAME }}" result_var: build_result push: "{{ push | default(False) | bool }}" push_dest: "{{ private_registry_domain | default('') }}" push_user: "{{ private_registry_user | default('') }}" push_pwd: "{{ private_registry_pwd | default('') }}" - debug: var=build_result