mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-05 21:11:52 +07:00
Generate ISO file name automatically
This commit is contained in:
parent
b747ded60e
commit
ad9eaaca7f
@ -1,6 +1,5 @@
|
||||
iso_url: "https://builds.coreos.fedoraproject.org/prod/streams/testing/builds/34.20210808.2.0/x86_64/fedora-coreos-34.20210808.2.0-live.x86_64.iso"
|
||||
iso_checksum: "sha256:8ec901fcb5bf9f05cf8046cbe7bce29e36600b7ec61165577c1b3c565b85425c"
|
||||
iso_file_name: "fedora-coreos-34.20210808.2.0-live.x86_64.iso"
|
||||
|
||||
os_name: CoreOS
|
||||
# TODO (optimize) Get timezone automatically from the controller
|
||||
|
@ -15,7 +15,7 @@
|
||||
- name: Download ISO
|
||||
get_url:
|
||||
url: "{{ iso_url }}"
|
||||
dest: "{{ role_path }}/files/images/{{ iso_file_name }}"
|
||||
dest: "{{ role_path }}/files/images/{{ iso_url | basename }}"
|
||||
checksum: "{{ iso_checksum }}"
|
||||
register: iso
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user