Not something I've done myself but I have a couple of suggestions of things you can try:
check the command line switches for the installer and make sure you are running the installer in a silent or unattended mode. If the installer pops up a window on the windows target, you'll never see it and the installer will just hang waiting for a mouse click or typing that will never arrive. try running with 'become'. This solves a lot of installation woes as I believe it gets you an interactive user, which you don't usually get via winrm (its normally just a batch login). see if there's a chocolatey package for the visual studio version you want to install and use that - if nothing else it will likely save you having to figure out a bunch of command line switches. Hope this helps, Jon On Tuesday, November 14, 2017 at 5:59:44 PM UTC, [email protected] wrote: > > I have a play that installs MS Visual Studio, but it seems to hang. Im on > Win10 Professional. > The below is: > 1) My syntax from the playbook > 2) My log file. > Any ideas? > > 1) > > - name: Install Visual Studio > > win_command: 'C:\Users\pkmbuilder\Desktop\VisualStudio.exe > --includeRecommended /InstallSelectableItems > Microsoft.VisualStudio.Workload.NativeMobile > > > 2) > > > [2CC4:28D8][2017-11-14T17:38:31]i001: Burn v3.7.4906.0, Windows v10.0 > (Build 15063: Service Pack 0), path: > C:\Users\pkmbuilder\Desktop\VisualStudio.exe, cmdline: > '--includeRecommended /InstallSelectableItems > Microsoft.VisualStudio.Workload.NativeMobile /Log > C:\Users\pkmbuilder\Desktop\vs_install_log.txt -burn.unelevated > BurnPipe.{32A10A50-1DF3-44F8-A544-88CBF1171745} > {FAC00AB5-01EF-492C-9366-0D3C0DD4D2C6} 10616' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'SKUFriendlyName' to value 'VS Pro' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'SKUFriendlyID' to value '2000' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'ExtraEditionDisplayName' to value '#loc.slipstream' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'EditionDisplayName' to value 'Professional 2015' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'SKUFullName' to value 'vs_professional_SlipStream_3' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'VSUpdateGeneralVersion' to value '3' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'SkuSpecificHKLMHive' to value 'Software\Microsoft\VisualStudio\14.0' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'RebootRequested' to value '0' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'ExecuteSecondaryInstaller' to value '0' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'BundleProgressKey' to value > 'Software\Microsoft\VisualStudio\14.0\Setup\vs\professional' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'SetupFeedKey' to value > 'Software\Microsoft\VisualStudio\14.0\Setup\vs\professional' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'LicenseFwlinkId' to value '735044' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'MoreLanguageFwlinkId' to value '659012' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'VSEIPAndPrivacyFwlinkId' to value '658994' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'MinOsLevelFwlinkId' to value '659008' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'SolutionFwlinkId' to value '658995' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'HelpFwlinkId' to value '658996' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'IE10FwlinkId' to value '658998' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'Win81BlockFwlinkId' to value '658999' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'SHA256BlockFwlinkId' to value '659006' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'Win81PreRelBlockFwlinkId' to value '659000' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'UninstallMddInfoFwlinkId' to value '659002' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'UpdateXmlFwlinkId' to value '659005' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'NetfxProductVersion' to value '4.5.25000' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'ProfessionalVSVersion' to value '11.0.50727' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'BaselineBundleVersion' to value '14.0.23107' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'FirstSlipstreamBundleVersion' to value '14.0.23108' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'ProductKey' to value 'DNHQYBGQ9B6979P28TRM6VJRY' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'ProductSKU' to value 'trial30' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'MbaNetfxPackageId' to value 'netfxfullredist_43;netfxfullweb' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Dev12_VC_Path' to value '[ProgramFilesFolder]Microsoft Visual Studio 12.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Win81Dev_Dev12Path' to value '[ProgramFilesFolder]Microsoft Visual Studio > 12.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Dev11_VC_Path' to value '[ProgramFilesFolder]Microsoft Visual Studio 11.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'WinSDK_Common_KitsRootPath' to value '[ProgramFilesFolder]Windows > Kits\8.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Win10_UniversalCRTSDK_KitsRootKeyPath' to value > '[ProgramFilesFolder]Windows Kits\10\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'WinBlue_Desktop_KitsRootPath' to value '[ProgramFilesFolder]Windows > Kits\8.1\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'WinBlue_Common_KitsRootPath' to value '[ProgramFilesFolder]Windows > Kits\8.1\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'WinBlue_Intellisense_KitsRootPath' to value '[ProgramFilesFolder]Windows > Kits\8.1\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'WinSDK_Desktop_KitsRootPath' to value '[ProgramFilesFolder]Windows > Kits\8.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Win8Dev_Dev11Path' to value '[ProgramFilesFolder]Microsoft Visual Studio > 11.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Dev11_UT_Path' to value '[ProgramFilesFolder]Microsoft Visual Studio 11.0\' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'IsChainingx86VSTORT' to value '1' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'IsChainingx64VSTORT' to value '1' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'IsChainingx86VSTODT' to value '1' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing numeric variable > 'IsChainingx64VSTODT' to value '1' > > [2CC4:28D8][2017-11-14T17:38:31]i000: Initializing string variable > 'Include_WindowsPhoneAppxEmulator' to value 'true' > > [2CC4:28D8][2017-11-14T17:38:32]i000: Setting string variable > 'WixBundleLog' to value 'C:\Users\pkmbuilder\Desktop\vs_install_log.txt' > > [2CC4:28D8][2017-11-14T17:38:32]i000: Setting string variable > 'WixBundleOriginalSource' to value > 'C:\Users\pkmbuilder\Desktop\VisualStudio.exe' > > [2CC4:28D8][2017-11-14T17:38:32]i000: Setting string variable > 'WixBundleOriginalSourceFolder' to value 'C:\Users\pkmbuilder\Desktop\' > > [2CC4:28D8][2017-11-14T17:38:32]i052: Condition '(VersionNT >= v6.1)' > evaluates to true. > > [2CC4:28D8][2017-11-14T17:38:32]i000: Setting string variable > 'WixBundleName' to value 'Microsoft Visual Studio Professional 2015 with > Updates' > > [2CC4:28D8][2017-11-14T17:38:32]i000: Loading managed bootstrapper > application. > > [2CC4:28D8][2017-11-14T17:38:32]i000: Creating BA thread to run > asynchronously. > > [2CC4:2834][2017-11-14T17:38:32]i000: Ux Started > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: Loading LocalizableStrings.xml > string from LocalizableStrings.xml > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: Reset Result > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: Current action: Install > > [2CC4:2834][2017-11-14T17:38:32]i000: Setting string variable > 'CurrentOperation' to value 'Install' > > [2CC4:2834][2017-11-14T17:38:32]e000: MUX: Invalid commandline argument: > -includerecommended > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: Set Result: Return Code=1603 > (0x643), Error Message=Invalid command line, Result Detail=Invalid command > line, Vital=True, Package Action=None, Package Id=None > > [2CC4:2834][2017-11-14T17:38:32]i000: Setting string variable > 'IsLanguagePack' to value '' > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: Current action: Install > > [2CC4:2834][2017-11-14T17:38:32]i000: Setting string variable > 'CurrentOperation' to value 'Install' > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: New last unconfirmed source: > Web > > [2CC4:2834][2017-11-14T17:38:32]i000: MUX: Source confirmed > > [2CC4:2834][2017-11-14T17:38:32]i000: Setting string variable > 'CurrentRepairPackage' to value '' > > [2CC4:2834][2017-11-14T17:38:32]i000: Setting numeric variable > 'UpdateInModify' to value 0 > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting numeric variable > 'HypervisorSupported' to value 1 > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting numeric variable > 'HypervisorEnabled' to value 1 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Resume = None > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Restart = Prompt > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Relation = None > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Action = Install > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Display = Full > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'CustomInstallPath' to value 'C:\Program Files (x86)' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'CustomInstallPath' to value 'C:\Program Files (x86)\Microsoft Visual > Studio 14.0' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'ExecuteSecondaryInstaller' to value '0' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'SecondaryInstallerParameters' to value '' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'SecondaryInstallerDynamicItems' to value '' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting numeric variable > 'ConnectPipeToSecondaryInstaller' to value 0 > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'SecondaryInstallerPipeName' to value '' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'SecondaryInstallerPipeSecret' to value '' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'RelationType' to value 'None' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'DisplayMode' to value 'Full' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting numeric variable > 'NetworkAvailable' to value 1 > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'OriginalDisplayMode' to value 'Full' > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'OriginalDisplayModeSwitch' to value '' > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Metrics: ShouldSendData=True > > [2CC4:2834][2017-11-14T17:38:33]i000: Setting string variable > 'InstanceSessionId' to value '318858a2-254c-4e67-af40-0edb24bbd6ff' > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Using Cloned > Session:318858a2-254c-4e67-af40-0edb24bbd6ff > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: SetupAction: Install > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: ProductVersion: > 14.0.25420.01.00 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: ProductLanguage: 1033 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Branch: d14rel > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: OS: Windows 10 Pro > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: OSVersion: 10.0.15063.0 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: OSLanguage: 1033 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: OSArchitecture: AMD64 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: > RecordVirtualMachineInformation version: hpqoem - 0 > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: > RecordVirtualMachineInformation serialNumber: 2ua5161pqm > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: > RecordVirtualMachineInformation product: 212b > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Ux Initialized > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Aquiring mutex 'Global\Devdiv' > with a timeout of 0 ms > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Mutex 'Global\Devdiv' > ownership: True > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Seen existing cache mutex > 'Global\Devdiv CacheMutex': False > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Aquiring mutex 'Global\Devdiv > CacheMutex' with a timeout of 60000 ms > > [2CC4:2834][2017-11-14T17:38:33]i000: MUX: Mutex 'Global\Devdiv > CacheMutex' ownership: True > > Thats where it hangs. > -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0f50a124-dc34-463c-812e-68c1fb25dec1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
