Generate ISO file name automatically

This commit is contained in:
Khue Doan 2021-08-21 10:59:51 +00:00
parent b747ded60e
commit ad9eaaca7f
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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