Add new playbook build_image.yml.
This commit is contained in:
parent
1cab6bc61a
commit
08b98abf15
18
build_image.yml
Normal file
18
build_image.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user