diff --git a/metal/group_vars/all.yml b/metal/group_vars/all.yml index 273c3bdf..b5a71cb8 100644 --- a/metal/group_vars/all.yml +++ b/metal/group_vars/all.yml @@ -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" diff --git a/metal/roles/pxe-boot/tasks/server.yml b/metal/roles/pxe-boot/tasks/server.yml index 9aa3f222..25724111 100644 --- a/metal/roles/pxe-boot/tasks/server.yml +++ b/metal/roles/pxe-boot/tasks/server.yml @@ -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