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