Modify Ansible Tower inventory moment

This post was originally published on this site

Hi all,


We’ve added a Ansible Tower integration to vRA8 and so far so good. But a action to add the vm to the inventory is triggered before the vm is finished.. Should this succeed before the vm is ready, or does this have to wait??


If it has to wait, how can I change this?


I’m getting this error:

Ansible create workflow failed with error. Unable to add host to the inventory with Id: 5.


I have a Windows 2016 image with a Customization Specification containing this:

  • 1 auto logons as Administrator
  • 1 RunOnce command to enable remote Powershell and WinRM:

C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -Command "&{Enable-PSRemoting -Force; winrm quickconfig -force;}"

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.