b02e68222f
Use jinja2 template and ansible to expand variables.
19 lines
435 B
YAML
19 lines
435 B
YAML
---
|
|
- hosts: localhost
|
|
become: no
|
|
|
|
roles:
|
|
# Just load default variables from roles.
|
|
- role: kubespray-defaults
|
|
when: false
|
|
- role: download
|
|
when: false
|
|
|
|
tasks:
|
|
# Generate files.list and images.list files from templates.
|
|
- template:
|
|
src: ./contrib/offline/temp/{{ item }}.list.template
|
|
dest: ./contrib/offline/temp/{{ item }}.list
|
|
with_items:
|
|
- files
|
|
- images
|