feat(offline): Improve generate_list.sh to generate offline file list using ansible (#8537) (#8538) (#8606)

Use jinja2 template and ansible to expand variables.
This commit is contained in:
Takuya Murakami
2022-03-07 22:32:55 +09:00
committed by GitHub
parent 411902e9ff
commit 92d6c2d9a8
3 changed files with 42 additions and 47 deletions

View File

@@ -0,0 +1,20 @@
---
- 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