Add new playbook build_image.yml.

This commit is contained in:
yohan 2024-04-28 12:56:31 +02:00
parent 1cab6bc61a
commit 08b98abf15

18
build_image.yml Normal file
View File

@ -0,0 +1,18 @@
- 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
- debug: var=build_result