Facing the error while updating windows server 2022 core using ansible win_updates

Anonymous
2024-02-21T06:52:10+00:00

Failed to install all updates - see updates for more information\r
At line:980 char:9\r

  •     throw "Failed to install all updates - see updates for more i ...\r  
    
  •     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r  
    
    • CategoryInfo : OperationStopped: (Failed to insta...ore information:String) []%!(PACKER_COMMA) RuntimeException\r
    • FullyQualifiedErrorId : Failed to install all updates - see updates for more information\r
      \r
      \r
      \r
      at <ScriptBlock>%!(PACKER_COMMA) <No file>: line 980
      fatal: [default]: FAILED! => {
      "changed": true%!(PACKER_COMMA)
      "failed_update_count": 1%!(PACKER_COMMA)
      "filtered_updates": {
      "315f8b24-c165-420b-a374-c59e59a90cf4": {
      "categories": [
      "Definition Updates"%!(PACKER_COMMA)
      "Microsoft Defender Antivirus"
      ]%!(PACKER_COMMA)
      "downloaded": false%!(PACKER_COMMA)
      "filtered_reason": "category_names"%!(PACKER_COMMA)
      "filtered_reasons": [
      "category_names"
      ]%!(PACKER_COMMA)
      "id": "315f8b24-c165-420b-a374-c59e59a90cf4"%!(PACKER_COMMA)
      "installed": false%!(PACKER_COMMA)
      "kb": [
      "2267602"
      ]%!(PACKER_COMMA)
      "title": "Security Intelligence Update for Microsoft Defender Antivirus - KB2267602 (Version 1.405.308.0) - Current Channel (Broad)"
      }
      }%!(PACKER_COMMA)
      "found_update_count": 1%!(PACKER_COMMA)
      "installed_update_count": 0%!(PACKER_COMMA)
      "invocation": {
      "module_args": {
      "accept_list": null%!(PACKER_COMMA)
      "category_names": [
      "CriticalUpdates"%!(PACKER_COMMA)
      "SecurityUpdates"%!(PACKER_COMMA)
      "UpdateRollups"%!(PACKER_COMMA)
      "Updates"
      ]%!(PACKER_COMMA)
      "log_path": null%!(PACKER_COMMA)
      "reboot": false%!(PACKER_COMMA)
      "reboot_timeout": 1200%!(PACKER_COMMA)
      "reject_list": [
      "4561600"%!(PACKER_COMMA)
      "890830"
      ]%!(PACKER_COMMA)
      "server_selection": "default"%!(PACKER_COMMA)
      "skip_optional": false%!(PACKER_COMMA)
      "state": "installed"%!(PACKER_COMMA)
      "use_scheduled_task": false
      }
      }%!(PACKER_COMMA)
      "msg": "Failed to install all updates - see updates for more information"%!(PACKER_COMMA)
      "reboot_required": false%!(PACKER_COMMA)
      "rebooted": false%!(PACKER_COMMA)
      "updates": {
      "a8a2d6e3-c6dc-4eb8-bcfb-8c8c7d947899": {
      "categories": [
      "Microsoft Server operating system-21H2"%!(PACKER_COMMA)
      "Security Updates"
      ]%!(PACKER_COMMA)
      "downloaded": true%!(PACKER_COMMA)
      "failure_hresult_code": 2147944003%!(PACKER_COMMA)
      "failure_msg": "Unknown WUA HRESULT 2147944003 (UNKNOWN 80070643)"%!(PACKER_COMMA)
      "id": "a8a2d6e3-c6dc-4eb8-bcfb-8c8c7d947899"%!(PACKER_COMMA)
      "installed": false%!(PACKER_COMMA)
      "kb": [
      "5034439"
      ]%!(PACKER_COMMA)
      "title": "2024-01 Security Update for Microsoft server operating system version 21H2 for x64-based Systems (KB5034439)"
Windows for business Windows Server Devices and deployment Install Windows updates, features, or roles

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

7 answers

Sort by: Most helpful
  1. Anonymous
    2024-02-22T02:43:46+00:00

    Hi Vignesh V...,

    unfortunately, ansible win_updatesis not a Microsoft product, it is open-source software developed and maintained by the Red Hat company. So, I suggest you contact the software support to resolve the issue.

    Have a nice day.

    Best regards,

    Lei

    0 comments No comments
  2. Anonymous
    2024-02-22T06:39:11+00:00

    Hi Lei Tao,

    I'm using the same ansible win_update for Windows Server 2019 base, 2019 core and 2022 base. All of them are working but for windows 2022 core it causes this error - "failure_msg": "Unknown WUA HRESULT 2147944003 (UNKNOWN 80070643)" which relates more to WUA(Windows Update API) I believe.

    I found something relevant to this error, can you please take a look at this and confirm the same it's something to do with the WUA.

    https://gist.github.com/jborean93/6f7dd949b163a204b1a9cb356cf71485

    0 comments No comments
  3. Anonymous
    2024-02-22T09:15:02+00:00

    Hi

    I can't open the link.

    It can be a compatibility issue. I recommend you contact Red Hat's support to resolve the issue.

    0 comments No comments
  4. Anonymous
    2024-02-22T13:34:25+00:00

    hi,

    Okay, maybe try copy pasting the link instead of clicking. I'm gonna post the same to Red Hat's support as well.

    thanks,

    Vignesh V

    0 comments No comments
  5. Anonymous
    2024-05-09T19:25:07+00:00

    HI @Vignesh,

    Did you find any solution for this issue? I am also facing exactly a similar issue.

    Any information related to this issue would be very helpful.

    Thanks,

    Ram

    0 comments No comments