forked from kubernetes-sigs/kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(offline): Improve generate_list.sh to generate offline file list…
… using ansible (kubernetes-sigs#8537) (kubernetes-sigs#8538) Use jinja2 template and ansible to expand variables.
- Loading branch information
Showing
3 changed files
with
42 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |