From af6ec2f7c42412f58100226c9495bc59ffa8e6db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Barth=C3=A9l=C3=A9my?= Date: Mon, 14 Oct 2019 19:52:16 +0200 Subject: [PATCH 1/2] fix the KB updates for 2016 (1607) version the previous ones were failing to install on "Windows Server 2016 (1607)". Either because they actually were meant for "Windows Server 2016 (1803)" or because an SSU was missing. Let use the latest critical, SSU, cumulative udates. --- roles/packer-setup/vars/main.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/roles/packer-setup/vars/main.yml b/roles/packer-setup/vars/main.yml index e403652..5c60a22 100644 --- a/roles/packer-setup/vars/main.yml +++ b/roles/packer-setup/vars/main.yml @@ -390,15 +390,22 @@ pri_packer_setup_host_config: # https://www.catalog.update.microsoft.com/home.aspx and search for the # following terms, put the download link below; # + # Servicing Stack Updates sometimes need to be installed *before* the cumulative update, + # otherwise the cumulative update fails. + # # * Update for Windows Server 2016 for x64-based Systems - Critical Updates # https://www.catalog.update.microsoft.com/Search.aspx?q=Update%20for%20Windows%20Server%202016%20for%20x64-based%20Systems%20-%20Critical%20Updates + # * Update for Windows Server 2016 for x64-based Systems - Servicing Stack Updates + # https://www.catalog.update.microsoft.com/Search.aspx?q=Update%20for%20Windows%20Server%202016%20for%20x64-based%20Systems%20-%20Servicing%20Stack%20Updates # * Cumulative Update for Windows Server 2016 for x64-based Systems - Security Updates # https://www.catalog.update.microsoft.com/Search.aspx?q=Cumulative%20Update%20for%20Windows%20Server%202016%20for%20x64-based%20Systems%20-%20Security%20Updates bootstrap_files: - - name: KB4456655 - url: http://download.windowsupdate.com/d/msdownload/update/software/crup/2018/09/windows10.0-kb4456655-x64_fca3f0c885da48efc6f9699b0c1eaf424e779434.msu - - name: KB4480961 - url: http://download.windowsupdate.com/d/msdownload/update/software/secu/2019/01/windows10.0-kb4480961-x64_ada63f8d66b2c9994e03c3f5bffe56aff77edeb6.msu + - name: KB4132216 + url: http://download.windowsupdate.com/c/msdownload/update/software/crup/2018/05/windows10.0-kb4132216-x64_9cbeb1024166bdeceff90cd564714e1dcd01296e.msu + - name: KB4521858 + url: http://download.windowsupdate.com/d/msdownload/update/software/secu/2019/09/windows10.0-kb4521858-x64_4660e9135b9de2ec006aee76499588d729fbbc60.msu + - name: KB4519998 + url: http://download.windowsupdate.com/d/msdownload/update/software/secu/2019/10/windows10.0-kb4519998-x64_b62b591fe9a727817b9a7db57a135bd95a5cd423.msu '1709': box_tag: WindowsServer1709 From efb6d8159ba578c6f55a2dc096c14d10b855606a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Barth=C3=A9l=C3=A9my?= Date: Tue, 15 Oct 2019 14:43:54 +0200 Subject: [PATCH 2/2] fix typo --- roles/packer-setup/tasks/download_extract_iso.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/packer-setup/tasks/download_extract_iso.yml b/roles/packer-setup/tasks/download_extract_iso.yml index 2e66ef5..8751a7f 100644 --- a/roles/packer-setup/tasks/download_extract_iso.yml +++ b/roles/packer-setup/tasks/download_extract_iso.yml @@ -22,7 +22,7 @@ changed_when: false register: pri_packer_setup_unrar_file -- name: extract ISO fro self extracting exe file +- name: extract ISO from self extracting exe file command: unrar e {{ man_packer_setup_host_type }}/tmp-iso.exe {{ man_packer_setup_host_type }}/ args: creates: '{{ man_packer_setup_host_type }}/{{ pri_packer_setup_unrar_file.stdout }}'