ovh_instance_playbooks/build_image.yml

23 lines
688 B
YAML
Raw Permalink Normal View History

2024-04-28 10:56:31 +00:00
- 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
2024-06-21 15:11:27 +00:00
push: "{{ push | default(False) | bool }}"
push_dest: "{{ private_registry_domain | default('') }}"
2024-10-20 21:17:58 +00:00
push_user: "{{ private_registry_user | default('') }}"
push_pwd: "{{ private_registry_pwd | default('') }}"
2024-04-28 10:56:31 +00:00
- debug: var=build_result