Add checksum to metal ISO installer file

Avoid redownload the ISO and check the ISO integrity
This commit is contained in:
Khue Doan 2021-04-21 21:30:23 +07:00
parent bc28aef29d
commit 8d6c1b6889
2 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
iso_url: "https://mirrors.nhanhoa.com/centos/8.3.2011/isos/x86_64/CentOS-8.3.2011-x86_64-dvd1.iso"
iso_checksum: "sha256:aaf9d4b3071c16dbbda01dfe06085e5d0fdac76df323e3bbe87cce4318052247"
disk: "sda"
dns_server: "8.8.8.8"

View File

@ -16,6 +16,7 @@
get_url:
url: "{{ iso_url }}"
dest: "{{ role_path }}/build/images/centos8.iso"
checksum: "{{ iso_checksum }}"
delegate_to: localhost
- name: Mount the ISO