ovh_instance_playbooks/build_image.yml

21 lines
560 B
YAML

- 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('') }}"
- debug: var=build_result